http://www.hackersdelight.org/
http://www.amazon.com/Hackers-Delight-Henry-S-Warren/dp/0201...
My favorite is Kernighan's method for counting set bits. It's as short and clean as the naive method and not immediately obvious: http://graphics.stanford.edu/~seander/bithacks.html#CountBit...
http://www.hackersdelight.org/
http://www.amazon.com/Hackers-Delight-Henry-S-Warren/dp/0201...