Re:The Three Ways of XOR
by jonsen on Monday February 13, 2017 @09:47AM
(#13635571)
Overflow doesn't matter if you just want to swap.
[ Parent
| on HN ]
(Assuming two's complement arithmetic, as amelius pointed out - I don't know if all programming languages and platforms use it)
Re:The Three Ways of XOR
by mcintyre1994 on Monday February 13, 2017 @04:18PM
(#13638860)
That's a really smart observation I hadn't made, thanks for explaining!