uint icon indicating copy to clipboard operation
uint copied to clipboard

`modular`: Reduce larger bit-sizes to smaller ones.

Open github-actions[bot] opened this issue 2 years ago • 0 comments

On 2022-06-03 @recmo wrote in 2f6a5d6 “Merge pull request #103 from recmo/mulmod”:

Reduce larger bit-sizes to smaller ones.

    /// ⚠️ Compute $\mod{\mathtt{self}}_{\mathtt{modulus}}$.
    ///
    /// **Warning.** This function is not part of the stable API.
    ///
    /// Returns zero if the modulus is zero.
    // FEATURE: Reduce larger bit-sizes to smaller ones.
    #[must_use]
    pub fn reduce_mod(mut self, modulus: Self) -> Self {
        if modulus == Self::ZERO {
            return Self::ZERO;
        }

From src/modular.rs:14

github-actions[bot] avatar Jun 03 '22 23:06 github-actions[bot]