Crate specialized_div_rem[][src]

Each function name has:

  • the type it operates on
  • if it returns the quotient (div), remainder (rem), or both (div_rem, returns a tuple of the quotient and the remainder) of duo divided by rem
  • _long specifying it uses the special long division algorithm
  • _inline_always specifying that the function has the #[inline(always)] attribute on it. Note: these are very useful for getting a little more performance or whenever there is a wrapper using the functions.

Functions

u128_div_long
u128_div_long_inline_always
u128_div_rem_long
u128_div_rem_long_inline_always
u128_rem_long
u128_rem_long_inline_always
u32_div_long
u32_div_long_inline_always
u32_div_rem_long
u32_div_rem_long_inline_always
u32_rem_long
u32_rem_long_inline_always
u64_div_long
u64_div_long_inline_always
u64_div_rem_long
u64_div_rem_long_inline_always
u64_rem_long
u64_rem_long_inline_always