Delan Azabani

Bit Twiddling Hacks

More elegant branchless || bitwise optimisations than you can peek && poke at. Includes interesting morsels of beauty for bit reversal, clearing, counting, swapping, testing and interleaving.