4 ms·
If you need XOR of two boolean values, you can just "z = x != y". That's my favorite XOR trick, as it's easily understandable and readable.
by aljarry 6y ago
If you need XOR of two boolean values, you can just "z = x != y". That's my favorite XOR trick, as it's easily understandable and readable.
- abhishekjha 6y agox!=y is itself calculated using XOR.