# C backend: implement overflow arithmetic · gitcafe/zig

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

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

Visibility: public

Requested revision: 03ed0f0d2847a99823ee4ae1b1a0554b88c6544a

Requested commit: 03ed0f0d2847a99823ee4ae1b1a0554b88c6544a

Commit: 03ed0f0d2847a99823ee4ae1b1a0554b88c6544a

Tree: 142640be85ddd378ef630e2ff4be368efa2fe2f3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
C backend: implement overflow arithmetic

Most of the work here was additions to zig.h. The lowering code is
mainly responsible for calling the correct function name depending on
the operand type.

Some of the compiler-rt calls here are not implemented yet and are
non-standard symbols due to the C programming language not needing them.

After this commit, the behavior tests with -ofmt=c are passing again.

```

## Parents

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

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