Pages tagged bit_counting:

Puzzle: Fast Bit Counting « Reflections
http://gurmeetsingh.wordpress.com/2008/08/05/fast-bit-counting-routines/

return ((tmp + (tmp >> 3)) & 030707070707) % 63;