hex.ptr_inc

ptr[:w/4] += 2w

Signature

def ptr_inc ptr { ... }

Defined in hex/pointers/pointer_arithmetics.fj — lines 9–11 (view on GitHub).

Complexity

  • Time: 9@+14

  • Space: w(0.375@ + 3.25)  + 5@+55  (for log(w) in 16,32,64,128)

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

Depends on

Used by

Example uses


Next: hex.ptr_dec