[][src]Function specialized_div_rem::i64_div_rem_delegate

pub fn i64_div_rem_delegate(duo: i64, div: i64) -> (i64, i64)

Computes the quotient and remainder of duo divided by div and returns them as a tuple.

This uses binary shift long division, but if it can delegates work to a smaller division. This function is used for CPUs with a register size smaller than the division size, and that do not have fast multiplication or division hardware. For CPUs with a register size equal to the division size, the _binary_long functions are probably faster.

Panics

When attempting to divide by zero, this function will panic.