diff options
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 4ca76657d..10b52dbdd 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -2134,6 +2134,16 @@ BINARYEN_API int BinaryenGetLowMemoryUnused(void); // when optimizing. Applies to all modules, globally. BINARYEN_API void BinaryenSetLowMemoryUnused(int on); +// Gets whether fast math optimizations are enabled, ignoring for example +// corner cases of floating-point math like NaN changes. +// Applies to all modules, globally. +BINARYEN_API int BinaryenGetFastMath(void); + +// Enables or disables fast math optimizations, ignoring for example +// corner cases of floating-point math like NaN changes. +// Applies to all modules, globally. +BINARYEN_API void BinaryenSetFastMath(int value); + // Gets the value of the specified arbitrary pass argument. // Applies to all modules, globally. BINARYEN_API const char* BinaryenGetPassArgument(const char* name); |