News for hackers. Stuff that matters.
Re:Bit Twiddling Hacks by dpapathanasiou on Tuesday June 07, 2011 @04:57PM (#2630834)
"Hacker's Delight" (http://www.amazon.com/Hackers-Delight-Henry-S-Warren/dp/0201...) is also a good source for these, as well as other techniques.
Re:Bit Twiddling Hacks by windsurfer on Tuesday June 07, 2011 @05:59PM (#2631075)
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.
Re:Bit Twiddling Hacks by matrix3456 on Wednesday June 08, 2011 @05:26AM (#2632524)
How many people use this stuff in their daily job coding? Does this really matters and matters what?
Re:Bit Twiddling Hacks by wladimir on Wednesday June 08, 2011 @05:53AM (#2632561)
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.