[][src]Function specialized_div_rem::i16_div_rem_binary_long

pub fn i16_div_rem_binary_long(duo: i16, div: i16) -> (i16, i16)

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.