diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-29 18:38:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-29 18:52:24 -0700 |
commit | 0154b1effe2cde0ad81a1adcbe83b7c9d018dbbd (patch) | |
tree | 1dee9c9ad2edc3d860dc4deebb0696376a70b1ce /tools/shared.py | |
parent | 2e50e7ca8ae5f6e18894c74fe4d33c90e404c6bc (diff) |
add test for precise float32 support, allow 3 modes of precise float32 support, and rename option to PRECISE_F32 to be consistent with other precision options
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index a923f88a..6ba6ef50 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -1515,7 +1515,7 @@ class JS: settings = settings or Settings if sig == 'i': return '0' - elif sig == 'f' and settings.get('FROUND'): + elif sig == 'f' and settings.get('PRECISE_F32'): return 'Math_fround(0)' else: return '+0' @@ -1525,7 +1525,7 @@ class JS: settings = settings or Settings if sig == 'i': return value + '|0' - elif sig == 'f' and settings.get('FROUND'): + elif sig == 'f' and settings.get('PRECISE_F32'): return 'Math_fround(' + value + ')' elif sig == 'd' or sig == 'f': return '+' + value |