diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-14 17:19:50 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-14 17:19:50 -0700 |
commit | 6749401c21206655e57db30664faff12cdfae138 (patch) | |
tree | e2e3dc2ee59a4f6a74ad705a7451e2415489af12 /src/parseTools.js | |
parent | 84c58ecc4abb7af1c88cce1af3d86ffa106f22d2 (diff) |
use compiled i64 div and rem
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 8a6daaf3..2eb456f1 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -2073,7 +2073,7 @@ function processMathop(item) { } case 'sdiv': case 'udiv': { if (PRECISE_I64_MATH) { - return i64PreciseOp('divide', op[0] === 'u'); + return preciseCall(op[0] === 'u' ? '___udivdi3' : '___divdi3'); } else { warnI64_1(); return finish(splitI64(makeRounding(mergeI64(idents[0], op[0] === 'u') + '/' + mergeI64(idents[1], op[0] === 'u'), bits, op[0] === 's'), true)); @@ -2089,7 +2089,7 @@ function processMathop(item) { } case 'urem': case 'srem': { if (PRECISE_I64_MATH) { - return i64PreciseOp('modulo', op[0] === 'u'); + return preciseCall(op[0] === 'u' ? '___uremdi3' : '___remdi3'); } else { warnI64_1(); return finish(splitI64(mergeI64(idents[0], op[0] === 'u') + '%' + mergeI64(idents[1], op[0] === 'u'), true)); |