# implement vector addition with safety checking · gitcafe/zig

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

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

Visibility: public

Requested revision: 0a7bdc00771dbad1dfe5eb93a7cade89059d227a

Requested commit: 0a7bdc00771dbad1dfe5eb93a7cade89059d227a

Commit: 0a7bdc00771dbad1dfe5eb93a7cade89059d227a

Tree: 8cb52e6e9ce0e52a63bccd5974c1a7c6150dfdce

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
implement vector addition with safety checking

this would work if @llvm.sadd.with.overflow supported
vectors, which it does in trunk. but it does not support
them in llvm 7 or even in llvm 8 release branch.

so the next commit after this will have to do a different
strategy, but when llvm 9 comes out it may be worth coming
back to this one.

```

## Parents

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

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