RSS Bot@lemmy.bestiver.seMB to Hacker News@lemmy.bestiver.seEnglish · 4 days agoWhy xor eax, eax?xania.orgexternal-linkmessage-square2linkfedilinkarrow-up14arrow-down10file-text
arrow-up14arrow-down1external-linkWhy xor eax, eax?xania.orgRSS Bot@lemmy.bestiver.seMB to Hacker News@lemmy.bestiver.seEnglish · 4 days agomessage-square2linkfedilinkfile-text
minus-squaregheesh@lemmy.worldlinkfedilinkEnglisharrow-up2·4 days agoThe instruction is smaller than “mov eax, 0” (because it includes the 32-bit zero) and the result is the same. Notice that smaller may mean more instructions in cache for a tight loop, so it may also result in better performace, too.
The instruction is smaller than “mov eax, 0” (because it includes the 32-bit zero) and the result is the same. Notice that smaller may mean more instructions in cache for a tight loop, so it may also result in better performace, too.