diff options
author | Alon Zakai <azakai@google.com> | 2020-07-10 10:19:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 10:19:09 -0700 |
commit | bc4bb83d94a8a6240bead6ad9c18702bd9c331e7 (patch) | |
tree | 3e894dfb96f38a67db0c7660cd9671b06444d098 /scripts/fuzz_opt.py | |
parent | 8092b1173717b55829374d5af5135287af75518e (diff) | |
download | binaryen-bc4bb83d94a8a6240bead6ad9c18702bd9c331e7.tar.gz binaryen-bc4bb83d94a8a6240bead6ad9c18702bd9c331e7.tar.bz2 binaryen-bc4bb83d94a8a6240bead6ad9c18702bd9c331e7.zip |
wasm2js: Sign-extend support (#2949)
The usual "trick" to extend: shift left so the sign bit in the small
integer is now the sign bit in a 32-bit integer, then shift right to
spread that sign bit out and return the lower bits to their
proper place, (x << 24) >> 24.
Diffstat (limited to 'scripts/fuzz_opt.py')
0 files changed, 0 insertions, 0 deletions