# CBE: split \{clz,ctz,mod,popCount,byteSwap,bitReverse\} by type · gitcafe/zig

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

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

Visibility: public

Requested revision: 8643591c9a42d07508c9b5b623d606f27f26af2c

Requested commit: 8643591c9a42d07508c9b5b623d606f27f26af2c

Commit: 8643591c9a42d07508c9b5b623d606f27f26af2c

Tree: ecbcf8f99e2d675c974dad84a68d776000a21ec5

Author: Daniele Cocca

Committer: Daniele Cocca

## Message

```
CBE: split {clz,ctz,mod,popCount,byteSwap,bitReverse} by type

This also surfaces the fact that clz, ctz and popCount didn't actually
support 128 bit integers, despite what was claimed by
226fcd7c709ec664c5d883042cf7beb3026f66cb. This was partially hidden by
the fact that the test code for popCount only exercised 128 bit integers
in a comptime context. This commit duplicates that test case for runtime
ints too.

```

## Parents

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

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