bit.xor_to_ptrΒΆ
Effectively: bit.xor *ptr, bit
ptr is a bit[:w] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def xor_to_ptr ptr, bit @ end { ... }
Defined in bit/pointers.fj β lines 98β102 (view on GitHub).
ComplexityΒΆ
Time:
2w@ + 2@+2Space:
2w@ + 2@+2
See the complexity glossary for what @, w, dw, dbit, n mean.
Requires initΒΆ
The following must be initialised before this macro is invoked:
bit.pointers.ptr_init
SourceΒΆ
Click to view the macro body
def xor_to_ptr ptr, bit @ end {
.if0 bit, end
.ptr_flip_dbit ptr
end:
}
Depends onΒΆ
β Previous: bit.ptr_flip_dbit
Next: bit.ptr_wflip β