Geek Author
Geek Author
Intermation
Episode 7.05 - Flipping Bits using the Bitwise Inverse and Bitwise-XOR
12 minutes Posted May 26, 2020 at 5:09 pm.
0:00
12:38
Download MP3
Show notes

Inverting or flipping the bits of an integer is the third and last method of "bit bashing" we will discuss. There are two ways to invert bits: either flip all of them at once or use a mask to identify which bits to flip and which to leave alone.