4 ms·
If you're using floating point, x * 0.5 is faster
by darkstalker 14y ago
If you're using floating point, x * 0.5 is faster
- dtparr 14y agoGiven that the question indicates that bit-shifting x would result in a valid answer, I think we can rule out floating point.