Expand description
N-digit division
Implementation heavily inspired by uint
Structsยง
- Array
Plus ๐One An array of N + 1 elements
Functionsยง
- add_
assign ๐Performa += 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 computenumerator / 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 ๐Performa -= b