Skip to content
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

implement arb_urem_ #15

Open
AaronKutch opened this issue Mar 11, 2023 · 0 comments
Open

implement arb_urem_ #15

AaronKutch opened this issue Mar 11, 2023 · 0 comments

Comments

@AaronKutch
Copy link
Owner

I think it should be possible to have a function with the signature arb_urem_(duo: &mut Self, div: &Self, pad: &mut Self) -> Option<()>, the way it works in the general case is copying duo to pad, performing digit_udivide_inplace_ with it and the most significant digit bits of div plus 1, then using pad again as a temporary in a subtract-multiply step against duo, then repeating the whole process in a loop. There are probably edge cases when it gets close to the end, or maybe we can simply dd_divide that stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant