プログラミングのメモ
Hamming weight - Wikipedia, the free encyclopedia http://en.wikipedia.org/wiki/Hamming_weight
Counting bits set, in parallel - Bit Twiddling Hacks http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel