# cbe: fix shl/shr · gitcafe/zig

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

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

Visibility: public

Requested revision: b6f0af57a2bb9f7d2f74d1cb4a89af501bc1e885

Requested commit: b6f0af57a2bb9f7d2f74d1cb4a89af501bc1e885

Commit: b6f0af57a2bb9f7d2f74d1cb4a89af501bc1e885

Tree: 3edb0cf2970c836545f8c419fa9e72b90ed083ae

Author: kcbanner

Committer: kcbanner

## Message

```
cbe: fix shl/shr

- zig_shr_u128 was actually shifting left
- handle shifting by zero explicitly (shifting u64 by 64 is undefined behaviour)

```

## Parents

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

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