summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2008-05-03 21:04:21 +0000
committergonzo <gonzo@FreeBSD.org>2008-05-03 21:04:21 +0000
commit42c1276178c21ac6de77a0a0809e1d8f84e97439 (patch)
tree67cf387ca50b7f5d140f6c017ab1d875007a9b91
parent86d85f532d68124813974634067dd896ce9ff724 (diff)
downloadFreeBSD-src-42c1276178c21ac6de77a0a0809e1d8f84e97439.zip
FreeBSD-src-42c1276178c21ac6de77a0a0809e1d8f84e97439.tar.gz
Add FLT_EVAL_METHOD and DECIMAL_DIG, required by C99 standard.
Approved by: cognet (mentor)
-rw-r--r--sys/mips/include/float.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/mips/include/float.h b/sys/mips/include/float.h
index 407945d..750feb0 100644
--- a/sys/mips/include/float.h
+++ b/sys/mips/include/float.h
@@ -47,6 +47,12 @@ __END_DECLS
#else
#define FLT_ROUNDS __flt_rounds() /* FP addition rounds to nearest */
#endif
+/*
+ * XXXMIPS: MIPS32 has both float and double type, so set FLT_EVAL_METHOD
+ * to 0. Check it for 64-bits systems.
+ */
+#define FLT_EVAL_METHOD 0
+#define DECIMAL_DIG 17
#define FLT_MANT_DIG 24 /* p */
#define FLT_EPSILON 1.19209290E-07F /* b**(1-p) */
OpenPOWER on IntegriCloud