Quote:
Originally Posted by Justin
I think it depends on what condi1 refers to.. If it's mostly 0, then 2) should be faster. Other cases, the difference becomes less I'd think.
|
or maybe it because, it take less time to compare, than to mul ?
EDIT: reffers to that:
cond1 = 0 or 1
Quote:
Code:
//1)
spi1 = condi1 * slider1 * spl0;
//2)
condi1 ? spi1 = slider1 * spl0 : spi1 = 0;
|