pub fn div_rem(numerator: &mut [u64], divisor: &mut [u64])
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.