aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-05-07 17:04:19 +0200
committerLuuk de Gram <luuk@degram.dev>2022-05-07 17:04:19 +0200
commitad4f0dda8b8c270594ed24a27c808f8bd43924bf (patch)
tree13114b5847eaf3f578c43910cb0f772645951406 /src/codegen
parent0c51e703f19d04edbfa26b7243b9bc125b5489a6 (diff)
downloadzig-ad4f0dda8b8c270594ed24a27c808f8bd43924bf.tar.gz
zig-ad4f0dda8b8c270594ed24a27c808f8bd43924bf.zip
wasm: Fix `@floatToInt` and split overflow ops
As we now store negative signed integers as two's complement, we must also ensure that when truncating a float, its value is wrapped around the integer's size. This also splits `@mulWithOverflow` into its own function to make the code more maintainable and reduce branching.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions