# optimize udivmod · gitcafe/zig

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

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

Visibility: public

Requested revision: 947dd36341bdef0cb359a008257e7f1638f60594

Requested commit: 947dd36341bdef0cb359a008257e7f1638f60594

Commit: 947dd36341bdef0cb359a008257e7f1638f60594

Tree: e472f129f9bfa370ea9e35dff7dbf66f4df94624

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

```
optimize udivmod

See https://reviews.llvm.org/D81809 for upstream description.

In summary this is ~10x improvement for small divisors and similar
performance for equal divisors.

Closes #13523.

```

## Parents

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

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