3 ms·
Yup I think you are right -- the (fixed) code is very obscure now.
by rwmj 10y ago
Yup I think you are right -- the (fixed) code is very obscure now.
- huhtenberg 10y agoI think it's actually quite elegant. The issue is that it always does two comparisons, even when one would suffice.
- Someone 10y agoDepending on how the compiler computes a>b, it may be branchless, though, and I expect that to be more important on modern CPUs.