summaryrefslogtreecommitdiff
path: root/sys/powerpc/include/float.h
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2004-07-19 08:17:25 +0000
committerDavid Schultz <das@FreeBSD.org>2004-07-19 08:17:25 +0000
commit479f8d22144746f149f9db8d18b3698747672f30 (patch)
treec9066d911af64f4a2b6d8c54df428e3e3cc5eb40 /sys/powerpc/include/float.h
parentec79bc0da9bffb2c95632bcd18e1316492575014 (diff)
Notes
Diffstat (limited to 'sys/powerpc/include/float.h')
-rw-r--r--sys/powerpc/include/float.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/powerpc/include/float.h b/sys/powerpc/include/float.h
index 1d683f60bb5d..fff14f404561 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 */