diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-02 16:36:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-02 16:36:42 -0700 |
commit | ec58cc4c637b6fef6f4580b92c753e745c301bbe (patch) | |
tree | 508f5a36fb54201e99cd1b444dcce2df902a519c /emscripten.py | |
parent | 16f79a38c4839647314c7f007ea11187954d84c9 (diff) | |
parent | 4b8ff3fb5dcbc1ef61b17f1d7a7ca4bdb3f0b811 (diff) |
Merge pull request #1693 from sunfishcode/incoming
Optimize alignment rounding.
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 2b62c93a..2e90fa48 100755 --- a/emscripten.py +++ b/emscripten.py @@ -588,7 +588,7 @@ function stackAlloc(size) { var ret = 0; ret = STACKTOP; STACKTOP = (STACKTOP + size)|0; -''' + ('STACKTOP = ((STACKTOP + 3)>>2)<<2;' if settings['TARGET_X86'] else 'STACKTOP = ((STACKTOP + 7)>>3)<<3;') + ''' +''' + ('STACKTOP = (STACKTOP + 3)&-4;' if settings['TARGET_X86'] else 'STACKTOP = (STACKTOP + 7)&-8;') + ''' return ret|0; } function stackSave() { |