Function specialized_div_rem::i32_div_rem[][src]

pub fn i32_div_rem(duo: i32, div: i32) -> (i32, i32)

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

Panics

When attempting to divide by zero, this function will panic. Note that unlike Rust's division, i32_div_rem(i32::MIN,-1) will not panic but instead overflow and produce the correct truncated two's complement (i32::MIN,0).