# improve bit shift API in std.math · gitcafe/zig

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

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

Visibility: public

Requested revision: 844e05f619d62c1c2a332c1effa3ab6c211b3062

Requested commit: 844e05f619d62c1c2a332c1effa3ab6c211b3062

Commit: 844e05f619d62c1c2a332c1effa3ab6c211b3062

Tree: c20bb93357926a7d35164f5b0a92995daa70bae2

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
improve bit shift API in std.math

 * `shl` moved to `shlExact`
 * added `shl` and `shr` which are truncating like `<<` and `>>`.

closes #403

```

## Parents

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

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