hex.add (arity 2)ΒΆ

dst += src

both dst,src are hexes.
Relies on the add-carry, and updates it at the end.

SignatureΒΆ

def add dst, src < .add.dst { ... }

Defined in hex/math.fj β€” lines 12–14 (view on GitHub).

ComplexityΒΆ

  • Time: 4@+12

  • Space: 4@+52

See the complexity glossary for what @, w, dw, dbit, n mean.

Requires initΒΆ

The following must be initialised before this macro is invoked:

  • hex.add.init (or hex.init)

SourceΒΆ

Depends onΒΆ


Next: hex.add/3 β†’