Skip to content

Conversation

andrewwhitehead
Copy link
Contributor

invert_mod2k and invert_mod2k_vartime are optimized for Uint and BoxedUint (often by 95% or more), which brings the performance of invert_mod much closer to invert_odd_mod.

This depends on some of the updates in #930, and adds more functionality to UintRef for operating on limb slices in const methods. Support for operating on Odd<UintRef> or NonZero<UintRef> is also added.

…thods into a separate module

Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
Signed-off-by: Andrew Whitehead <[email protected]>
fix repeated doubling in expand_invert_mod2k

Signed-off-by: Andrew Whitehead <[email protected]>
@tarcieri tarcieri requested review from fjarri and tarcieri August 26, 2025 12:41
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.

1 participant