Function ruint::algorithms::div_rem
source · [−]Expand description
⚠️ Division with remainder.
Warning. This function is not part of the stable API.
The quotient is stored in the numerator
and the remainder is stored
in the divisor
.
Algorithms
It uses schoolbook division when the divisor
first a single limb,
otherwise it uses Knuth’s algorithm D.
Panics
Panics if divisor
is zero.