[][src]Function specialized_div_rem::i128_div_rem_asymmetric

pub fn i128_div_rem_asymmetric(duo: i128, div: i128) -> (i128, i128)

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.