Bit Twiddling Hacks

23 Jan 2024 graphics.stanford.edu
Methods for counting bits, etc. Especially interesting is "the best method for counting bits"