aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-22 10:01:04 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-22 10:01:04 -0800
commit4ca9a8aa83d9b69c57bf6986723995d11c048af2 (patch)
treef5c227b175897e5b45bcb17f33cb508b8027ba3e
parent941c8e583d603ff4e6b124dc1fe17d03dface233 (diff)
turn on Math.imul by default in ASM_JS mode; it has practically no downsides since it is now used only when actually needed, which is rare, and the polyfill is very efficient
-rw-r--r--src/settings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.js b/src/settings.js
index d036822f..9023f7d8 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -324,7 +324,7 @@ var BENCHMARK = 0; // If 1, will just time how long main() takes to execute, and
var ASM_JS = 0; // If 1, generate code in asm.js format. XXX This is highly experimental,
// and will not work on most codebases yet. It is NOT recommended that you
// try this yet.
-var USE_MATH_IMUL = 0; // If 1, use Math.imul when useful
+var USE_MATH_IMUL = 1; // If 1, use Math.imul when normal int math can't be done in ASM_JS
var EXPLICIT_ZEXT = 0; // If 1, generate an explicit conversion of zext i1 to i32, using ?: