-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve udivmod
Performance
#16
Comments
Currently, I believe the best way forward is to port the code from |
Ported 128-bit integer division from
|
Re-opening this issue. Integer division performance was greatly improved with #18, but there are still some cases that can be improved. Specifically,
(Note: In this notation, |
We should port the
Note that in general,
|
Reference to the |
It looks like
udivmod
performance can further be increased when dividing two "large" (i.e. greater thanu128::MAX
).Specifically, the algorithm in
primitive-types
performs significantly better for these larger numbers.See #15 (comment) and #15 (comment) for more details and more resources on fast integer division algorithms (including
libgmp
paper)The text was updated successfully, but these errors were encountered: