Expand description
N-digit division
Implementation heavily inspired by uint
Structsยง
- Array
Plus ๐One - An array of N + 1 elements
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
- div_rem
- 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