News for hackers. Stuff that matters.
Re:Low Level Bit Hacks You Absolutely Must Know by CapacitorSet on Friday May 11, 2018 @07:06AM (#17046308)
Which isn't super helpful, because there is [a GCC `__builtin_popcount`](https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html), a POPCNT intrinsic if you're developing for SSE4, and [existing implementations](https://en.wikipedia.org/wiki/Hamming_weight#Efficient_imple...) you can look up at any time if you don't want to reinvent the wheel.
Re:Low Level Bit Hacks You Absolutely Must Know by rahilb on Friday May 11, 2018 @11:06AM (#17047785)
That's cool. I probably shouldn't have said useful and instead said interesting. My interest in these kind of operations is to learn lower level theory, not to produce production grade bit counting/twiddling code. In that sense, the operation is interesting (to me).