Showing posts with label Operators. Show all posts
Showing posts with label Operators. Show all posts

Friday, February 10, 2012

x>0 faster than x==0

My assumptions where correct.
Checking to see if x>0 only requires checking 2 of the bits in the uint,
while checking to see x==0 requires checking ALL bits.