Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hmry
on April 28, 2023
|
parent
|
context
|
favorite
| on:
Beautiful branchless binary search
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.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: