hex.sub_constant¶

dst[:dst_n] -= const
n_const is the hex-length of const, without all of it’s least-significant-hexes zeros.

Signature¶

def sub_constant n, dst, const { ... }

Defined in hex/math.fj — lines 185–187 (view on GitHub).

Complexity¶

  • Time: n_const(4@+12)   + 5@+11

  • Space: n_const(2.5@+39) + (dst_n - hex_shift)(1.5@+13) + 4@+41

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)

Depends on¶

Used by¶