Skip to content

carry / partial [terminology]

Terminology

Usage

  • Use carry for bits or digits propagated to the next position.
  • Use partial for an incomplete intermediate result.
  • Neither is a final answer or additive total in the usual sense.
partial = (a ^ b) & mask
carry = ((a & b) << 1) & mask
a, b = partial, carry