Bitwise operations

Bitwise operations are usually easier to CPU.

NOT

011 (3)

NOT 3 = 4 (100)

AND

011 (3) AND 100 (4) = 0 (000)

OR

011 (3) ORĀ 100 (4) = 7 (111)