Source

Branch

1/ @RaykiruS

@nicbarkeragain

That’s cool, but also compilers know how to do it as well, sometimes the assembly it generates when it spots a branchless version by itself is better then the one generated by compiling your implementation.

In any case, if someone wants optimization they should measure first