Function specialized_div_rem::i128_div_rem [−][src]
pub fn i128_div_rem(duo: i128, div: i128) -> (i128, i128)
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, i128_div_rem(i128::MIN,-1)
will not panic but instead overflow and produce the correct truncated two's complement (i128::MIN,0)
.