Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
danbruc
on Dec 19, 2022
|
parent
|
context
|
favorite
| on:
EABitTricks.h
You could keep incrementing from the current value until the population count matches again, but in the worst case - probably from 2^62 to 2^63 with a single set bit or wrapping around from 2^63 to 2^0 - that would still take pretty much 2^64 steps.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: