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

> XOR on the same argument: x ^ x = 0

For those who do/did assembly, this is the common way to set a register to zero in x86 assembly (probably not only) because the instruction does not need an operand, so is shorter, and executes in one cycle only.



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

Search: