diff options
Diffstat (limited to 'src/float/FLT_ROUNDS.h')
-rw-r--r-- | src/float/FLT_ROUNDS.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/float/FLT_ROUNDS.h b/src/float/FLT_ROUNDS.h new file mode 100644 index 00000000..8fefb48e --- /dev/null +++ b/src/float/FLT_ROUNDS.h @@ -0,0 +1,22 @@ +#include <float.h> + extern int fegetround(void); +#define FLT_ROUNDS fegetround() + +/** rounding direction **/ + +/*** +describes the rounding mode of floating-point addition used by the +implementation. It is not necessarily constant. +***/ + +/* +VALUE_SELECT(-1, indeterminable) +VALUE_SELECT(0, toward zero) +VALUE_SELECT(1, to nearest) +VALUE_SELECT(2, toward positive infinity) +VALUE_SELECT(3, toward negative infinity) +SEE_ALSO(FUNCTION(fegetround)) +*/ +/* +STDC(1) +*/ |