lexical_util::div128

Function moderate_u128_divrem

Source
pub fn moderate_u128_divrem(
    n: u128,
    d: u64,
    factor: u128,
    factor_shr: u32,
) -> (u128, u64)
Expand description

Fast division/remainder algorithm for u128, without a fast native approximation.