[−][src]Function specialized_div_rem::u32_div_rem_binary_long
pub fn u32_div_rem_binary_long(duo: u32, div: u32) -> (u32, u32)
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.