hex.xor_hex_to_ptr (arity 2)ΒΆ
Effectively: hex.xor *ptr, hex
ptr is a hex[:w/4] that holds an address, which we assume is an hex-variable, which is dw-aligned.
SignatureΒΆ
def xor_hex_to_ptr ptr, hex { ... }
Defined in hex/pointers/xor_to_pointer.fj β lines 36β39 (view on GitHub).
ComplexityΒΆ
Time:
w(0.5@+2) + 5@+12Space:
w(0.5@+14) + 5@+76
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def xor_hex_to_ptr ptr, hex {
.pointers.set_flip_pointer ptr
.pointers.xor_hex_to_flip_ptr hex
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.pointers.xor_hex_to_ptr_and_incinhex/pointers/xor_to_pointer.fj
β Previous: hex.ptr_flip_dbit
Next: hex.xor_byte_to_ptr/2 β