[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: motion: update exception and flag operations for consistency



On Thu, 3 Aug 2006 08:13:44 -0700 (PDT), David Hough 754R work wrote:

By having these functions (and the other ones you proposed)
return void (instead of boolean or int), there is no way
to find out if they succeeded or failed.

How could they fail?   Conforming implementations (there's a predicate to
test that) must provide them.

These functions concern signaling exceptions and raising flags as defined
in 754R glossary.     These are not Unix signals.     The functions I
defined have no failure modes.


If these functions are added to a general purpose language, such as C,
then they need to work in environments where the floating-point is
not IEEE-754 (such as IBM S/360 hex FP, or VAX FP).  In those environments,
these functions could fail.
---
Fred J. Tydeman        Tydeman Consulting
tydeman@xxxxxxxxx      Testing, numerics, programming
+1 (775) 358-9748      Vice-chair of J11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.

754 | revision | FAQ | references | list archive