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/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.").