BITWISE OPERATIONS
AND
OR
XOR
NOT
BIT SHIFT LEFT
think of this as multiplying by 10. In base 2, shifting a value one bit to the left corresponds to multiplying it by 2
BIT SHIFT RIGHT
think of this as dividing by 10. In base 2, shifting one bit to the right corresponds to dividing by 2
DETECTING BIT STATE
RESETTING BIT
SETTING BIT
NEGATING BIT
Last updated