Skip to main content

div2by1

Function div2by1 

Source
pub(crate) const fn div2by1(
    u0: Word,
    u1: Word,
    reciprocal: &Reciprocal,
) -> (Word, Word)
Expand description

Calculate the quotient and the remainder of the division of a wide word (supplied as high and low words) by d, with a precalculated reciprocal v.

This method corresponds to Algorithm 4