Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
juancn
21 days ago
|
parent
|
context
|
favorite
| on:
A Fast 64-Bit Date Algorithm (30–40% faster by cou...
It took me a while to understand that internally it uses 128bit numbers, that `>> 64` in the pseudocode was super confusing until I saw the C++ code.
Neat code though!
brucehoult
21 days ago
[–]
Not really. It looks like that in the C code, but in the generated machine code it'll just be a single `MULH` instruction giving (only) the upper 64 bits of the result, no shift needed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Neat code though!