5 ms·
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 mos
by JeanPierre 15y ago
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.
- onemoreact 15y agoI would assume you need to be using regesters for three XOR's to be slower than a temperary variable.