Re:Beautiful branchless binary search
by hmry on Friday April 28, 2023 @02:16AM
(#35738051)
cmov doesn't go through the branch predictor, and AFAIK it even loads both operands unconditionally every time before checking the condition. I see no reason to consider it a branch, and have never heard anybody else categorize it as one.
[ Parent
| on HN ]
There are no comments on this comment yet.