aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-13 16:30:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-13 16:30:40 -0800
commit3fad706454530f0946068132b450637d8ef3f672 (patch)
treeb7bdd17ab40d645534dcfd6192efc044deda8a66
parent5462298658a497dcb6ca8475664201d0608a37f4 (diff)
parent89bc4f4a205b5123457462d98242c172c27f3c08 (diff)
Merge pull request #172 from jterrace/flt_rounds
Update float.h to define FLT_ROUNDS
-rw-r--r--system/include/bsd/float.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/include/bsd/float.h b/system/include/bsd/float.h
index 33e1b9d9..7020cf9a 100644
--- a/system/include/bsd/float.h
+++ b/system/include/bsd/float.h
@@ -42,7 +42,13 @@ int __flt_rounds(void);
__END_DECLS
#define FLT_RADIX 2 /* b */
-#define FLT_ROUNDS __flt_rounds()
+/*
+ * XXX Emscripten
+ * See float.h documentation for these values
+ * 1 seems best for JavaScript instead of:
+ * #define FLT_ROUNDS __flt_rounds()
+ */
+#define FLT_ROUNDS 1
#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 2 /* long double */
#endif