Some bit operation hack tips. Much of them are from http://graphics.stanford.edu/~seander/bithacks.html#BitReverseObvious