Module elliptic_curve::util
source ·
[−]Expand description
Arithmetic helper functions designed for efficient LLVM lowering.
These functions are intended for supporting arithmetic on field elements modeled as multiple “limbs” (e.g. carry chains).
Functions
Computes a + b + carry
, returning the result along with the new carry.
32-bit version.
Computes a + b + carry
, returning the result along with the new carry.
64-bit version.
Computes a + (b * c) + carry
, returning the result along with the new carry.
32-bit version.
Computes a + (b * c) + carry
, returning the result along with the new carry.
64-bit version.
Computes a - (b + borrow)
, returning the result along with the new borrow.
32-bit version.
Computes a - (b + borrow)
, returning the result along with the new borrow.
64-bit version.