Skip to content

modular: dani): check if this is worth special casing over just using #515

@github-actions

Description

@github-actions

On 2025-08-04 @prestwich wrote in 25e81ad “Merge pull request #506 from DaniPopes/release-1.16.0”:

dani): check if this is worth special casing over just using
div_rem_double_bits

        }
    }

    #[inline(never)]
    fn div_rem_bits_plus_one(numerator: *mut u64, modulus: &mut Self) {
        // TODO(dani): check if this is worth special casing over just using
        // div_rem_double_bits
        let numerator = unsafe { core::slice::from_raw_parts_mut(numerator, LIMBS + 1) };
        algorithms::div::div_inlined(numerator, &mut modulus.limbs);
    }

    /// Compute $\mod{\mathtt{self} ⋅ \mathtt{rhs}}_{\mathtt{modulus}}$.

From src/modular.rs:75

Metadata

Metadata

Assignees

Labels

to doTo be donetrackerIssue tracked by bot

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions