# stage2: more division support · gitcafe/zig

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

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

Visibility: public

Requested revision: 7f70c27e9d57c8234545120da81861e2cfb354b5

Requested commit: 7f70c27e9d57c8234545120da81861e2cfb354b5

Commit: 7f70c27e9d57c8234545120da81861e2cfb354b5

Tree: 47948dcf37e5e5767db2b428a8ef8177ef8eee86

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: more division support

AIR:
 * div is renamed to div_trunc.
 * Add div_float, div_floor, div_exact.
   - Implemented in Sema and LLVM codegen. C backend has a stub.

Improvements to std.math.big.Int:
 * Add `eqZero` function to `Mutable`.
 * Fix incorrect results for `divFloor`.

Compiler-rt:
 * Add muloti4 to the stage2 section.

```

## Parents

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

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