Rants, rambles, news and notes from another geek

Count Bits Set and Other Cool Tricks

I don’t remember what project I was working on, but I do remember that we needed a way to count the number of bits set and for whatever reason the “naive” way wasn’t good enough. I wish this page had existed then.