aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-01 12:33:37 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-01 12:33:37 -0700
commitb215efb7c115aa0c62daf081dc9098042fe2ffda (patch)
tree0d0a55e3908ca1a78d1cc30d2c88cc331e46d7f4 /src/settings.js
parente1a210f81387d60b3bd75954e76f243bce33068b (diff)
support for precise i64 signed math
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 66b53218..ede00dd5 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -67,6 +67,9 @@ var DOUBLE_MODE = 1; // How to load and store 64-bit doubles. Without typed arra
// then load it aligned, and that load-store will make JS engines alter it if it is being
// stored to a typed array for security reasons. That will 'fix' the number from being a
// NaN or an infinite number.
+var PRECISE_I64_MATH = 0; // If enabled, i64 addition etc. is emulated - which is slow but precise. If disabled,
+ // we use the 'double trick' which is fast but incurs rounding at high values.
+ // Note that precise math currently only handles *signed* values, not unsigned
var CLOSURE_ANNOTATIONS = 0; // If set, the generated code will be annotated for the closure
// compiler. This potentially lets closure optimize the code better.