4 ms·
Most compilers will compile both the three xor version and three variable version to the same machine code anyway, since modern cpu's have swap instructions.
by hananova 2y ago
Most compilers will compile both the three xor version and three variable version to the same machine code anyway, since modern cpu's have swap instructions.