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@+14Space:
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¶
Click to view the macro body
def ptr_inc ptr {
hex.add_constant w/4, ptr, dw
}
Depends on¶
Used by¶
Example uses¶
hex.pointers.xor_hex_to_ptr_and_incinhex/pointers/xor_to_pointer.fjhex.pointers.xor_byte_to_ptr_and_incinhex/pointers/xor_to_pointer.fjhex.read_hex_and_incinhex/pointers/read_pointers.fj
Next: hex.ptr_dec →