Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 1 day ago// Implementlemmy.zipexternal-linkmessage-square21fedilinkarrow-up1166arrow-down11
arrow-up1165arrow-down1external-link// Implementlemmy.zipMaven (famous)@lemmy.zip to Programmer Humor@programming.dev · 1 day agomessage-square21fedilink
minus-squareanton@piefed.blahaj.zonelinkfedilinkEnglisharrow-up8·1 day agoIf those are normal integers, the compiler optimizes that to a simple compare and branch/cmov.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up2·edit-21 day agofor others - https://godbolt.org/z/osaKrxsPx
If those are normal integers, the compiler optimizes that to a simple compare and branch/cmov.
for others - https://godbolt.org/z/osaKrxsPx