bit-twiddling hacks — Parallax Forums
A friend shared this with me today. It's a page full of bit-twiddling hacks. Figured someone here might find it useful, so I'm passing it along.
It's also worth mentioning the classic book,
, by Henry S Warren. This book was referenced on the forum repeatedly in early days of the Propeller 1. It offers a lot of narrative to go with the algorithms presented.
I looked for the web site that went with it, and discovered it is only accessible now via the archive: