Trait m61_modulus::M61Reduction
source · pub trait M61Reduction {
// Required methods
fn reduce_m61(&self) -> M61;
fn reduce_m61_parallelized(&self, max_thread_count: usize) -> M61;
}Expand description
Helper trait for making the fuctions accessible using the dot operator.
Required Methods§
sourcefn reduce_m61(&self) -> M61
fn reduce_m61(&self) -> M61
Calculates self mod (2^61 - 1), assuming self is a number
base 2^Self::BITS, with digits stored in little-edian ordering.
sourcefn reduce_m61_parallelized(&self, max_thread_count: usize) -> M61
fn reduce_m61_parallelized(&self, max_thread_count: usize) -> M61
Calculates self mod (2^61 - 1), assuming self is a number
base 2^Self::BITS, with digits stored in little-edian ordering.
This function is parallelized, using at most max_thread_count
threads to calculate the result.