# compiler_rt: Fix clzsi2 implementation for Thumb1 · gitcafe/zig

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

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

Visibility: public

Requested revision: c4d0f97b4c3f85796c4953d6e87b5c0186616bc1

Requested commit: c4d0f97b4c3f85796c4953d6e87b5c0186616bc1

Commit: c4d0f97b4c3f85796c4953d6e87b5c0186616bc1

Tree: 478f50dc11c5d2fbc548ced3dd5ed1d52a949c0e

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
compiler_rt: Fix clzsi2 implementation for Thumb1

The LUT contains the number of bits set, not the number of leading zeros
as we're subtracting from the total number of bits in a word.

Closes #4415

```

## Parents

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

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