Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
The power of two – fast division and modulo operations
(
teamleadnet.com
)
2 points
by
liamswayne
on April 25, 2024
|
hide
|
past
|
favorite
|
1 comment
Someone
on April 25, 2024
[–]
Better:
https://libdivide.com/
. That also optimizes division by non-powers of two.
https://ridiculousfish.com/blog/posts/labor-of-division-epis...
explains the math behind it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://ridiculousfish.com/blog/posts/labor-of-division-epis... explains the math behind it.