for scalar==float, tis faster to always to MIN and MAX, than to put an ELSE
betwixt them.
if (x < min) min = x; else if (x > max) max = x;
This expression forces the compiler to know if the min expression executed, and
insert a conditional jump before the max. Slow.
if (x < min) min = x; if (x > max) max = x;
This version allows the compiler to emitt MINSS and MAXSS unconditionally, giving
us a loop with zero branches inside.
git-svn-id: http://skia.googlecode.com/svn/trunk@3939 2bbb7eff-a529-9590-31e7-b0007b416f81
1 file changed