# compiler_rt: optimize mulo · gitcafe/zig

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

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

Visibility: public

Requested revision: 01d48e55a5aa683828dcb88fee2d811c8262d3e9

Requested commit: 01d48e55a5aa683828dcb88fee2d811c8262d3e9

Commit: 01d48e55a5aa683828dcb88fee2d811c8262d3e9

Tree: edfeb8830c844f328207ed9928fa4175158de9d8

Author: Jan Philipp Hafer

Committer: Andrew Kelley

## Message

```
compiler_rt: optimize mulo

- use usize to decide if register size is big enough to store
  multiplication result or if division is necessary
- multiplication routine with check of integer bounds
- wrapping multipliation and division routine from Hacker's Delight

```

## Parents

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

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