Skip to content

Conversation

@tarcieri
Copy link
Member

Adds a trait for obtaining a BernsteinYangInverter for the given Uint modulus, precomputing the number of unsaturated limbs needed for the 62-bit unsaturated form used by Bernstein-Yang at compile time, and associating the proper BernsteinYangInverter for a given Uint size as an associated type.

This should make it possible to obtain a BernsteinYangInverter for a Residue/DynResidue, though that's left as a followup exercise.

Adds a trait for obtaining a `BernsteinYangInverter` for the given
`Uint` modulus, precomputing the number of unsaturated limbs needed for
the 62-bit unsaturated form used by Bernstein-Yang at compile time, and
associating the proper `BernsteinYangInverter` for a given `Uint` size
as an associated type.

This should make it possible to obtain a `BernsteinYangInverter` for a
`Residue`/`DynResidue`, though that's left as a followup exercise.
@tarcieri tarcieri merged commit 9be64a3 into master Dec 15, 2023
@tarcieri tarcieri deleted the inverter-trait branch December 15, 2023 22:57
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
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