Skip to content

Commit dd7d795

Browse files
committed
Make FAST_MATH an internal setting
1 parent b0d250c commit dd7d795

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

site/source/docs/tools_reference/settings_reference.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ defaults 1, absent any other settings:
4646

4747
Default value: 0
4848

49-
.. _fast_math:
50-
51-
FAST_MATH
52-
=========
53-
54-
Enable fast math optimizations in wasm-opt when -ffast-math is passed.
55-
This enables aggressive floating-point optimizations that may violate
56-
IEEE 754 semantics but can improve performance.
57-
58-
Default value: 0
59-
6049
.. _check_null_writes:
6150

6251
CHECK_NULL_WRITES

src/settings.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ var ASSERTIONS = 1;
6666
// [link]
6767
var STACK_OVERFLOW_CHECK = 0;
6868

69-
// Enable fast math optimizations in wasm-opt when -ffast-math is passed.
70-
// This enables aggressive floating-point optimizations that may violate
71-
// IEEE 754 semantics but can improve performance.
72-
// [link]
73-
var FAST_MATH = 0;
74-
7569
// When STACK_OVERFLOW_CHECK is enabled we also check writes to address zero.
7670
// This can help detect NULL pointer usage. If you want to skip this extra
7771
// check (for example, if you want reads from the address zero to always return

src/settings_internal.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ var ASYNCIFY_IMPORTS_EXCEPT_JS_LIBS = [];
260260

261261
var WARN_DEPRECATED = true;
262262

263+
// Enable fast math optimizations in wasm-opt when -ffast-math is passed.
264+
// This enables aggressive floating-point optimizations that may violate
265+
// IEEE 754 semantics but can improve performance.
266+
var FAST_MATH = 0;
267+
263268
// WebGL 2 provides new garbage-free entry points to call to WebGL. Use
264269
// those always when possible.
265270
// We currently set this to false for certain browser when large memory sizes

0 commit comments

Comments
 (0)