Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zekica
23 days ago
|
parent
|
context
|
favorite
| on:
The gold standard of optimization: A look under th...
Even gcc's -O0 will do the bitshift, but even dividing with 5 on x86_64 will not do idiv:
imul rdx, rdx, 1717986919 shr rdx, 32 sar edx sar eax, 31 sub edx, eax mov eax, edx
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: