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@+2

  • Space: 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ΒΆ

Depends onΒΆ


← Previous: bit.ptr_flip_dbit Next: bit.ptr_wflip β†’