hex.add (arity 3)¶
dst[:n] += src[:n]
Signature¶
def add n, dst, src { ... }
Defined in hex/math.fj — lines 20–24 (view on GitHub).
Complexity¶
Time:
n(4@+12)Space:
n(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¶
Click to view the macro body
def add n, dst, src {
.add.clear_carry
rep(n, i) .add dst+i*dw, src+i*dw
.add.clear_carry
}
Depends on¶
Used by¶
Example uses¶
hex.input_dec_uint_untilinhex/input.fjhex.input_dec_int_untilinhex/input.fjhex.idivinhex/div.fj
← Previous: hex.add/2
Next: hex.add_shifted →