diff options
author | Jeff Terrace <jterrace@gmail.com> | 2012-01-13 17:32:11 -0500 |
---|---|---|
committer | Jeff Terrace <jterrace@gmail.com> | 2012-01-13 17:32:11 -0500 |
commit | 89bc4f4a205b5123457462d98242c172c27f3c08 (patch) | |
tree | b7bdd17ab40d645534dcfd6192efc044deda8a66 | |
parent | 5462298658a497dcb6ca8475664201d0608a37f4 (diff) |
Update float.h to define FLT_ROUNDS
-rw-r--r-- | system/include/bsd/float.h | 8 |
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 |