aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-10-24 17:11:43 +0200
committerLemonBoy <thatlemon@gmail.com>2021-10-24 17:11:43 +0200
commit811766e1cf0ad2fad73fbb82690969ce430ba1a5 (patch)
tree5f550e0115e5dcc9f6178be03c0dc8af63e86d58 /src/codegen/c.zig
parent94879506ea8fe51310f38b3db1bc1ea1e71a4389 (diff)
downloadzig-811766e1cf0ad2fad73fbb82690969ce430ba1a5.tar.gz
zig-811766e1cf0ad2fad73fbb82690969ce430ba1a5.zip
stage1/stage2: Simplify divTrunc impl
According to the documentation, `divTrunc` is "Truncated division. Rounds toward zero". Lower it as a straightforward fdiv + trunc sequence to make it behave as expected with mixed positive/negative operands. Closes #10001
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions