Macrosยง
Constantsยง
- FAST_
DIV_ ๐WIDE
Functionsยง
- div_
half ๐ - For small divisors, we can divide without promoting to
DoubleBigDigit
by using half-size pieces of digit, like long-division. - div_rem ๐
- div_
rem_ ๐core - An implementation of the base division algorithm. Knuth, TAOCP vol 2 section 4.3.1, algorithm D, with an improvement from exercises 19-21.
- div_
rem_ ๐digit - div_
rem_ ๐ref - div_
wide ๐ - x86 and x86_64 can use a real
div
instruction. - rem_
digit ๐ - sub_
mul_ ๐digit_ same_ len - Subtract a multiple. a -= b * c Returns a borrow (if a < b then borrow > 0).