snarkvm_utilities::biginteger

Module arithmetic

Source

Functionsยง

  • set a = a + b + carry, and return the new carry value.
  • Calculate a + b * c, returning the lower 64 bits of the result and setting carry to the upper 64 bits.
  • Calculate a + b * c, discarding the lower 64 bits of the result and setting carry to the upper 64 bits.
  • Calculate a + (b * c) + carry, returning the least significant digit and setting carry to the most significant digit.
  • set a = a - b - borrow, and return the new borrow value.