hex.sub (arity 3)¶
dst[:n] -= src[:n]
Signature¶
def sub n, dst, src { ... }
Defined in hex/math.fj — lines 165–169 (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.sub.init (or hex.init)
Source¶
Click to view the macro body
def sub n, dst, src {
.sub.clear_carry
rep(n, i) .sub dst+i*dw, src+i*dw
.sub.clear_carry
}
Depends on¶
Used by¶
Example uses¶
← Previous: hex.sub/2
Next: hex.sub_shifted →