Hacker News new | ask | show | jobs
by rep_lodsb 1285 days ago
Unless they are the same memory location!

http://underhanded-c.org/_page_id_16.html

x86 CPUs have a dedicated instruction to swap two registers, or a register with memory.