hex.pointers.set_flip_pointerΒΆ
Sets both to_flip and to_flip_var to point to the given pointer.
( to_flip{_var} = ptr )
ptr is a hex[:w/4] that holds an address.
SignatureΒΆ
def set_flip_pointer ptr < .to_flip, .to_flip_var { ... }
Defined in hex/pointers/basic_pointers.fj β lines 64β67 (view on GitHub).
ComplexityΒΆ
Time:
w(0.5@+2)Space:
w(0.5@+14)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def set_flip_pointer ptr < .to_flip, .to_flip_var {
..address_and_variable_xor w/4, .to_flip, .to_flip_var, .to_flip_var
..address_and_variable_xor w/4, .to_flip, .to_flip_var, ptr
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.ptr_flipinhex/pointers/xor_to_pointer.fjhex.xor_hex_to_ptrinhex/pointers/xor_to_pointer.fjhex.xor_byte_to_ptrinhex/pointers/xor_to_pointer.fj
β Previous: hex.pointers.set_jump_pointer
Next: hex.pointers.set_flip_and_jump_pointers β