by Thorham · 5y ago · 0 comments
Edit: Ignore this post, I misread the original post as saying swapping the same values would fail.
No, swapping two 1 bits works fine. Work it out more slowly, the article covered this and why it always works.
(1,1) => (1^1,1)=(0,1) => (0,1^0)=(0,1) => (0^1,1)=(1,1)