Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wasm2js: Sign-extend support (#2949) | Alon Zakai | 2020-07-10 | 1 | -0/+43 |
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. |