Ep 049: Flipping Bits using the Bitwise-XOR

Опубликовано: 13 Январь 2025
на канале: Intermation
5,926
102

Inverting or flipping the bits of an integer is the third and last method of bit-bashing we will discuss. The bitwise inverse allowed us to invert all of the bits, but the bitwise-XOR allows us to use a mask to identify which bits to flip and which to leave alone.