Anyone else always spend a huge amount of time understanding someone elses code when their doing bit twiddling? It's just not intuitive to me, and I always abstract it away as much as possible.
I think this should be regarded as "recreational computer science". It's intriguing to see how much is possible with some bit twiddling. It also gives insight into how things are handled internally.
But it's not for use in actual code, unless you're writing a video codec or other embedded system in which you want to shave off every cycle.