# compiler_rt: \_\_divmodti4 for libgcc symbol compatibility · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b

Requested commit: d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b

Commit: d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b

Tree: 1ddf6b56768e3817ecd40871a29b486fb32bcd50

Author: matu3ba

Committer: GitHub

## Message

```
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.
```

## Parents

- [ba680aa98737ae1f572de3bf0b7ef7a7da27ed31](https://git.cafe/gitcafe/zig/commit/ba680aa98737ae1f572de3bf0b7ef7a7da27ed31?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d976b4e4a56e4ac6b45a3d9ae9766e57bf04f82b?format=markdown)
