Set A, B and click Generate
Generate to see bit operation explanation.
O(1)
1result = a & b # AND2result = a | b # OR3result = a ^ b # XOR