3 ms·
It's not uncommon for machines to have a branchless idiom for generating the value of a condition. For instance, in x86: cmp price, 100 setg reg mo
by gsg 13y ago
It's not uncommon for machines to have a branchless idiom for generating the value of a condition. For instance, in x86:
cmp price, 100
setg reg
movzx reg, reg
lea reg, [reg + reg*4 + 5]
- userbinator 13y agocmp price, 100 cmc salc and al, 5 add al, 5 6 bytes not including comparison. "You don't get into the demoscene, the demoscene gets into you." :)
- gsg 13y agoGet out of here with your undocumented opcodes! (Neat.)