Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lgeorget
on Dec 7, 2022
|
parent
|
context
|
favorite
| on:
Fast midpoint between two integers without overflo...
There's branching involved in the minmax operation, so it'll always be slower than (x|y) - ((x^y)>>1).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: