http://www.amazon.com/gp/product/0321842685/ref=s9_simh_gw_p...
http://www.amazon.com/Art-Computer-Programming-Combinatorial...
has a fascinating 200+ page section on Boolean and bitwise tricks and techniques (Knuth: "A trick is a clever idea that can be used once, while a technique is a trick that can be used at least twice.").
http://www.amazon.com/gp/product/0321842685/ref=s9_simh_gw_p...