Skip to content

Conversation

@andrewwhitehead
Copy link
Contributor

This implements the division algorithm from #608 for BoxedUint. It includes some adjustments to div_rem_limb_with_reciprocal and rem_limb_with_reciprocal to reduce allocations.

The main body of the division is implemented as a helper method div_rem_vartime_in_place. This is partly to allow internal reuse in implementing to_str_radix_vartime.

@tarcieri tarcieri merged commit 6370b08 into RustCrypto:master Aug 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants