diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-10-24 17:11:43 +0200 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2021-10-24 17:11:43 +0200 |
| commit | 811766e1cf0ad2fad73fbb82690969ce430ba1a5 (patch) | |
| tree | 5f550e0115e5dcc9f6178be03c0dc8af63e86d58 /src/codegen/c.zig | |
| parent | 94879506ea8fe51310f38b3db1bc1ea1e71a4389 (diff) | |
| download | zig-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
