hex.ptr_flipΒΆ

Flip the bit whose address is stored in ptr. Effectively *ptr;.

SignatureΒΆ

def ptr_flip ptr @ cleanup < hex.pointers.to_flip { ... }

Defined in hex/pointers/xor_to_pointer.fj β€” lines 7–16 (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ΒΆ

Depends onΒΆ

Used byΒΆ

Example usesΒΆ


Next: hex.ptr_flip_dbit β†’