Y
Hacker News
new
|
ask
|
show
|
jobs
by
azakai
4191 days ago
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).
1 comments
vardump
4191 days ago
Good if compilers are that smart nowadays. Just a few years ago I did see two branches in a very similar piece of code.
link