diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/include/float.h | 6 | ||||
-rw-r--r-- | sys/arm/include/float.h | 4 | ||||
-rw-r--r-- | sys/i386/include/float.h | 6 | ||||
-rw-r--r-- | sys/ia64/include/float.h | 6 | ||||
-rw-r--r-- | sys/powerpc/include/float.h | 6 |
5 files changed, 22 insertions, 6 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 */ diff --git a/sys/arm/include/float.h b/sys/arm/include/float.h index 2cbdcaf..21761ec 100644 --- a/sys/arm/include/float.h +++ b/sys/arm/include/float.h @@ -38,8 +38,8 @@ #define _MACHINE_FLOAT_H_ 1 #define FLT_RADIX 2 /* b */ -#define FLT_ROUNDS 1 /* FP addition rounds to nearest */ -#define FLT_EVAL_METHOD (-1) /* i387 semantics are...interesting */ +#define FLT_ROUNDS (-1) /* indeterminate */ +#define FLT_EVAL_METHOD (-1) /* XXX */ #define DECIMAL_DIG 21 /* max precision in decimal digits */ #define FLT_MANT_DIG 24 /* p */ diff --git a/sys/i386/include/float.h b/sys/i386/include/float.h index 1608472..ea2df3c 100644 --- a/sys/i386/include/float.h +++ b/sys/i386/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 */ diff --git a/sys/ia64/include/float.h b/sys/ia64/include/float.h index ffd430b..21f1608 100644 --- a/sys/ia64/include/float.h +++ b/sys/ia64/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 0 /* no promotions */ #define DECIMAL_DIG 35 /* max precision in decimal digits */ diff --git a/sys/powerpc/include/float.h b/sys/powerpc/include/float.h index 1d683f6..fff14f4 100644 --- a/sys/powerpc/include/float.h +++ b/sys/powerpc/include/float.h @@ -36,8 +36,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 /* operands promoted to double */ #define DECIMAL_DIG 35 /* max precision in decimal digits */ |