# compiler_rt: add addo \(\#10824\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 3db130ff3d8175adce610f7805a149810cf7989d

Requested commit: 3db130ff3d8175adce610f7805a149810cf7989d

Commit: 3db130ff3d8175adce610f7805a149810cf7989d

Tree: e9e330f1efdd587ef45be88b6f175447c32ad82f

Author: matu3ba

Committer: GitHub

## Message

```
compiler_rt: add addo (#10824)

- approach by Hacker's Delight with wrapping addition
- ca. 1.10x perf over the standard approach on my laptop
- tests with all combinations of min,max with -1,0,+1 and combinations of
  sequences +-1,2,4..,max
```

## Parents

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

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