News for hackers. Stuff that matters.
Re:Subtraction is not comparison by azakai on Thursday December 25, 2014 @11:48PM (#8798085)
I would hope that on modern compilers on modern architectures, this would be done with zero branches. That is the case in a quick test on my machine (gcc 4.6.3).
Re:Subtraction is not comparison by vardump on Friday December 26, 2014 @07:50PM (#8801186)
Good if compilers are that smart nowadays. Just a few years ago I did see two branches in a very similar piece of code.