diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-10 17:42:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-10 17:42:20 -0800 |
commit | 080056477f566a0755cb4f8de8482e08f1a1d550 (patch) | |
tree | 489463e689fe976edbed34dabd6e1d25a8c7e3e0 | |
parent | 05680318f03c86660f009c14d98cfad5f856db1c (diff) |
remove duplicate floor import in asm
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index ccee1a85..ac13f7a3 100755 --- a/emscripten.py +++ b/emscripten.py @@ -305,7 +305,7 @@ def emscript(infile, settings, outfile, libraries=[]): return 'function %s(%s) { %s abort(%d); %s };\n' % (bad, params, coercions, i, ret) + raw.replace('[0,', '[' + bad + ',').replace(',0,', ',' + bad + ',').replace(',0,', ',' + bad + ',').replace(',0]', ',' + bad + ']').replace(',0]', ',' + bad + ']') function_tables_defs = '\n'.join([make_table(sig, raw) for sig, raw in last_forwarded_json['Functions']['tables'].iteritems()]) - maths = ['Runtime.bitshift64', 'Math.floor', 'Math.min', 'Math.abs', 'Math.sqrt', 'Math.pow', 'Math.cos', 'Math.sin', 'Math.tan', 'Math.acos', 'Math.asin', 'Math.atan', 'Math.atan2', 'Math.exp', 'Math.log', 'Math.ceil', 'Math.floor'] + maths = ['Runtime.bitshift64', 'Math.floor', 'Math.min', 'Math.abs', 'Math.sqrt', 'Math.pow', 'Math.cos', 'Math.sin', 'Math.tan', 'Math.acos', 'Math.asin', 'Math.atan', 'Math.atan2', 'Math.exp', 'Math.log', 'Math.ceil'] if settings['USE_MATH_IMUL']: maths += ['Math.imul'] |