hex.sub_shifted¶
dst[:dst_n] -= src[:src_n] << (4*hex_shift)
Signature¶
def sub_shifted dst_n, src_n, dst, src, hex_shift @ do_dec, end { ... }
Defined in hex/math.fj — lines 171–178 (view on GitHub).
Complexity¶
Time:
src_n(4@+12) + 5@+10 // It's on average, see the note in hex.inc.Space:
src_n(2.5@+39) + (dst_n - hex_shift)(1.5@+13) + 4@+40
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)