# compiler_rt: add subo · gitcafe/zig

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

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

Visibility: public

Requested revision: fc59a0406157dbd0704cf9f05cd04b6a8c87d7df

Requested commit: fc59a0406157dbd0704cf9f05cd04b6a8c87d7df

Commit: fc59a0406157dbd0704cf9f05cd04b6a8c87d7df

Tree: 828950c75e372509e67f607a2588bd22c3b6a1fb

Author: Jan Philipp Hafer

Committer: Andrew Kelley

## Message

```
compiler_rt: add subo

- approach by Hacker's Delight with wrapping subtraction
- performance expected to be similar to addo
- tests with all relevant combinations of min,max with -1,0,+1 and all
  combinations of sequences +-1,2,4..,max

```

## Parents

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

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