diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-05-06 21:58:25 +0200 |
|---|---|---|
| committer | Luuk de Gram <luuk@degram.dev> | 2022-05-06 21:58:25 +0200 |
| commit | 4df65fc26485fe32976561990393a35eb52ddfc6 (patch) | |
| tree | 79e7c740f8957cd9a2cfac410de0e51fa6d29c89 /src/type.zig | |
| parent | ac1aaec9c38eb44b93099ff18579a9401f107100 (diff) | |
| download | zig-4df65fc26485fe32976561990393a35eb52ddfc6.tar.gz zig-4df65fc26485fe32976561990393a35eb52ddfc6.zip | |
wasm: Store signed ints as two's complement
When a signed integer is negative, the integer will be stored as a two's complement,
rather than its signed value. Instead, we verify the signed bits during arithmetic operations.
This fixes signed cases of `@mulWithOverflow`.
Diffstat (limited to 'src/type.zig')
0 files changed, 0 insertions, 0 deletions
