News for hackers. Stuff that matters.
Re:Tesla's Simultaneous Brilliance and Incompetence Revealed... by samatman on Friday April 27, 2018 @06:35PM (#16944978)
Which comes with the obligatory reminder that it fails when a == b.
Re:Tesla's Simultaneous Brilliance and Incompetence Revealed... by twtw on Friday April 27, 2018 @06:46PM (#16945016)
No it doesn't. xor swap works fine when the two values are equal. The problem is when &a == &b.