Skip to main content

impl_fixed_monty_ops

Macro impl_fixed_monty_ops 

Source
macro_rules! impl_fixed_monty_ops {
    ($T:ty, $D:ty, $r2:expr, primitive) => { ... };
    ($T:ty, $D:ty, $r2:expr, udouble) => { ... };
}
Expand description

Generates all Reducer methods except new().

The caller must provide an inherent fn reduce(&self, monty: $D) -> $T and the associated constants MODULUS / R2.