Bit manipulation, I am no wizard
This post is mainly so I don’t ever lose this information and I have it in a safe place that I can get to from anywhere. Bit manipulation makes me feel like some kind of wizard in a tower when I use it. It conjures images of me as an old man with a giant white bear and crinkly little eyes pouring over giant arcane books of information.
In truth most programmers know that bit manipulation more akin to a peasant flipping some switches. Even so, having those switches flipped at the right moment sure is useful. This was taken orginally … Continue Reading