[−][src]Function specialized_div_rem::i64_div_rem_asymmetric
pub fn i64_div_rem_asymmetric(duo: i64, div: i64) -> (i64, i64)
Computes the quotient and remainder of duo
divided by div
and returns them as a
tuple.
This is optimized for dividing integers with the same bitwidth as the largest operand in
an asymmetrically sized division. For example, the x86-64 divq
assembly instruction
can divide a 128 bit integer by a 64 bit integer if the quotient fits in 64 bits.
Panics
When attempting to divide by zero, this function will panic.