Y
Hacker News
new
|
ask
|
show
|
jobs
by
eru
1285 days ago
A note of caution: using that trick on modern hardware and/or languages is likely to be slower than just using the temporary variable. Because compilers and processors can see through the latter better than the XOR.