top | item 3159092

(no title)

alexscheelmeyer | 14 years ago

Both will work. The xor version is an old trick that many years ago was faster to execute. I do not think that is still the case, but there is still the difference that the XOR opcode is only one byte and the mov version is multiple, so it saves a few bytes in the executable.

discuss

order

jevinskie|14 years ago

More importantly, these days, is that it saves a few bytes in the caches.