3 ms·
It's not just "you've got enough space" - it's only relevant if both operands are in registers already. If they're both in memory, then the xors are entirely r
by dllthomas 13y ago
It's not just "you've got enough space" - it's only relevant if both operands are in registers already. If they're both in memory, then the xors are entirely redundant (first things you'd have to do is read values into two registers, at which point you can just write it back the other way).
I wouldn't object to seeing it in a critical section in high performance code with substantial register pressure, but ideally it could be inserted by the compiler!