Bit Twiddling Hacks    By Sean Eron Anderson