Re:Wikipedia: Making of Doom
by JeanPierre on Friday July 22, 2011 @07:51AM
(#2793132)
To elaborate on its usefullness: An XOR-swap is only useful when you do not have space for a new pointer, otherwise, making a new temporary variable will on most processors be faster than XOR-swapping.
[ Parent
| on HN ]
Re:Wikipedia: Making of Doom
by onemoreact on Friday July 22, 2011 @10:10AM
(#2793558)
I would assume you need to be using regesters for three XOR's to be slower than a temperary variable.