Module malachite_base::num::arithmetic::xx_div_mod_y_to_qr
source · Expand description
XXDivModYToQR
, a trait for dividing a double-width number by a
single-width number and returning the quotient and remainder.
§xx_div_mod_y_to_qr
use malachite_base::num::arithmetic::traits::XXDivModYToQR;
assert_eq!(
u64::xx_div_mod_y_to_qr(0x12, 0x34, 0x33),
(0x5a5a5a5a5a5a5a5b, 0x13)
);
assert_eq!(u8::xx_div_mod_y_to_qr(0x78, 0x9a, 0xbc), (0xa4, 0x2a));