diff options
| author | matu3ba <matu3ba@users.noreply.github.com> | 2023-02-11 13:41:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-11 14:41:08 +0200 |
| commit | d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b (patch) | |
| tree | 1ddf6b56768e3817ecd40871a29b486fb32bcd50 /tools | |
| parent | ba680aa98737ae1f572de3bf0b7ef7a7da27ed31 (diff) | |
| download | zig-d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b.tar.gz zig-d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b.zip | |
compiler_rt: __divmodti4 for libgcc symbol compatibility
- Copy and adjust __divmodsi4 tests for __divmoddi4 and __divmodti4.
- Assuming d = a/b does not overflow (MIN/-1) or uses div by 0,
then tmp = (d * b) = (a/b * b) = a does not overflow.
=> Remove wraparound for remainder in applicable routines.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gen_stubs.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gen_stubs.zig b/tools/gen_stubs.zig index 3e9a92086b..b1783b96ba 100644 --- a/tools/gen_stubs.zig +++ b/tools/gen_stubs.zig @@ -666,6 +666,7 @@ const blacklisted_symbols = [_][]const u8{ "__divkf3", "__divmoddi4", "__divmodsi4", + "__divmodti4", "__divsf3", "__divsi3", "__divtf3", |
