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)

Depends on¶