Re:Do I Really Need a Programming Language?
by gsg on Sunday December 29, 2013 @08:49AM
(#6979506)
It's not uncommon for machines to have a branchless idiom for generating the value of a condition. For instance, in x86:
[ Parent
| on HN ]
Re:Do I Really Need a Programming Language?
by userbinator on Sunday December 29, 2013 @09:01AM
(#6979531)
cmp 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." :)