[libc-commits] [libc] [Libc] Fix has_zeroes() function not working with long Word type (PR #244197)

Hussam Alhassan via libc-commits libc-commits at lists.llvm.org
Thu Nov 19 05:03:39 PST 2026


hussam-alhassan wrote:

This was tested using a simple program which called the function 4 times with the following parameter as the `block` param:
```
unsigned long long_test_no_zeroes = 0x4141414141414141;
unsigned long long_test_zeroes = 0x0000000041414141;
unsigned int int_test_no_zeroes = 0x41414141;
unsigned int int_test_zeroes = 0x00414141;
```

Only `int_test_zeroes` caused `has_zeroes()` to return true. 

https://github.com/llvm/llvm-project/pull/244197


More information about the libc-commits mailing list