aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-05-06 21:58:25 +0200
committerLuuk de Gram <luuk@degram.dev>2022-05-06 21:58:25 +0200
commit4df65fc26485fe32976561990393a35eb52ddfc6 (patch)
tree79e7c740f8957cd9a2cfac410de0e51fa6d29c89 /src/type.zig
parentac1aaec9c38eb44b93099ff18579a9401f107100 (diff)
downloadzig-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