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 /emscripten.py | |
parent | 84c58ecc4abb7af1c88cce1af3d86ffa106f22d2 (diff) |
use compiled i64 div and rem
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/emscripten.py b/emscripten.py index bae6d8cd..b49008cd 100755 --- a/emscripten.py +++ b/emscripten.py @@ -392,12 +392,6 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, if settings['CHECK_HEAP_ALIGN']: basic_funcs += ['CHECK_ALIGN_2', 'CHECK_ALIGN_4', 'CHECK_ALIGN_8'] basic_vars = ['STACKTOP', 'STACK_MAX', 'tempDoublePtr', 'ABORT'] basic_float_vars = ['NaN', 'Infinity'] - if forwarded_json['Types']['preciseI64MathUsed']: - basic_funcs += ['i64Math_' + op for op in ['divide', 'modulo']] - asm_setup += ''' -var i64Math_divide = function(a, b, c, d, e) { i64Math.divide(a, b, c, d, e) }; -var i64Math_modulo = function(a, b, c, d, e) { i64Math.modulo(a, b, c, d, e) }; -''' if forwarded_json['Types']['preciseI64MathUsed'] or \ forwarded_json['Functions']['libraryFunctions'].get('llvm_cttz_i32') or \ |