Expand description
This module contains low-level arithmetic functions for big integer’s limbs.
Functions§
- adc
- Calculate
a = a + b + carryand return the result and carry. - adc_
assign - Sets a = a + b + carry, and returns the new carry.
- carrying_
mac - Calculate
a + (b * c) + carry, returning the least significant digit and setting carry to the most significant digit. - mac
- Calculate
a + b * c, returning the lower 64 bits of the result and settingcarryto the upper 64 bits. - sbb
- Calculate
a = a - b - borrowand return the result and borrow. - sbb_
assign - Sets a = a - b - borrow, and returns the borrow.
- widening_
mul - Multiply two
Limb’s and return widened result.