Distributive property
Playing with the XOR (^) operator
- We have
a ^ a = 0, where0represents a vector (bits) of all zeroes - This property holds even when the terms of an expression are re-arranged, leading to interesting expressions like:
Shift operations
- Left shift
- Right shift
- Two types of right shift: