arrow_buffer::bigint

Module div

Source
Expand description

N-digit division

Implementation heavily inspired by uint

Structsยง

Functionsยง

  • add_assign ๐Ÿ”’
    Perform a += b
  • binop_slice ๐Ÿ”’
    Converts an overflowing binary operation on scalars to one on slices
  • bits ๐Ÿ”’
    Return the least number of bits needed to represent the number
  • Unsigned, little-endian, n-digit division with remainder
  • div_rem_knuth ๐Ÿ”’
    Use Knuth Algorithm D to compute numerator / divisor returning the quotient and remainder
  • div_rem_small ๐Ÿ”’
    Division of numerator by a u64 divisor
  • div_rem_word ๐Ÿ”’
    Perform narrowing division of a u128 by a u64 divisor, returning the quotient and remainder
  • full_mul_u64 ๐Ÿ”’
    Widening multiplication of an N-digit array with a u64
  • full_shl ๐Ÿ”’
    Widening left shift of an N-digit array by at most 63 bits
  • full_shr ๐Ÿ”’
    Narrowing right shift of an (N+1)-digit array by at most 63 bits
  • shl_word ๐Ÿ”’
    Left shift of an N-digit array by at most 63 bits
  • sub_assign ๐Ÿ”’
    Perform a -= b