Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: