[][src]Function specialized_div_rem::u128_div_rem_binary_long

pub fn u128_div_rem_binary_long(duo: u128, div: u128) -> (u128, u128)

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

This uses binary shift long division only, and is designed for CPUs without fast multiplication or division hardware.

Panics

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