diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-24 20:12:17 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-24 20:12:17 -0800 |
commit | 13e604eb6c74f8beb2b797557406d23305094329 (patch) | |
tree | 67f5b6ff735ea4d0fa9881498f32b346008a9d74 /src/preamble.js | |
parent | d9fc6cfaa2456431064779b8246b01d184402717 (diff) |
rewrite makeRounding to fix a bug
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/preamble.js b/src/preamble.js index 9df6bf60..3fcdf1f8 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -230,12 +230,6 @@ var CorrectionsMonitor = { } }; -#if CORRECT_ROUNDINGS -function cRound(x) { - return x >= 0 ? Math.floor(x) : Math.ceil(x); -} -#endif - #if CHECK_OVERFLOWS //======================================== // Debugging tools - Mathop overflows @@ -381,6 +375,8 @@ var __ATEXIT__ = []; var ABORT = false; var undef = 0; +// tempInt is used for 32-bit signed values or smaller. tempBigInt is used +// for 32-bit unsigned values or more than 32 bits. TODO: audit all uses of tempInt var tempValue, tempInt, tempBigInt, tempInt2, tempBigInt2, tempPair; #if I64_MODE == 1 var tempI64, tempI64b; |