Explorer09 wrote:
Another naive popcount:
```c
int popcount_naive3(unsigned long x) {
int result = 0;
while (x != 0) {
result += ((x & 1U) != 0);
x >>= 1;
}
return result;
}
```
https://github.com/llvm/llvm-project/pull/172677