diff options
Diffstat (limited to 'sys/amd64/include/float.h')
-rw-r--r-- | sys/amd64/include/float.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/amd64/include/float.h b/sys/amd64/include/float.h index 1608472..ea2df3c 100644 --- a/sys/amd64/include/float.h +++ b/sys/amd64/include/float.h @@ -35,8 +35,12 @@ #include <sys/cdefs.h> +__BEGIN_DECLS +extern int __flt_rounds(void); +__END_DECLS + #define FLT_RADIX 2 /* b */ -#define FLT_ROUNDS 1 /* FP addition rounds to nearest */ +#define FLT_ROUNDS __flt_rounds() #if __ISO_C_VISIBLE >= 1999 #define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */ #define DECIMAL_DIG 21 /* max precision in decimal digits */ |