hex.sub.sub_hex_shifted_constant (arity 5)¶

dst[:dst_n] -= const << (4*hex_shift)
const is a constant of size hex[:n_const]

Signature¶

def sub_hex_shifted_constant n_dst, n_const, dst, const, hex_shift @ shifted_constant, end { ... }

Defined in hex/math.fj — lines 200–206 (view on GitHub).

Complexity¶

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

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

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¶