bit.ptr_flip_dbit¶

Complexity 2w@ + 2@
The stl.comp_flip_if executes in ~##w, which should be much less than @/2 operations.
like:  (*ptr)+dbit;
Flip the address dbit-ahead of what the pointer points to.
ptr is a bit[:w] that holds an address, which we assume is dw-aligned.

Signature¶

def ptr_flip_dbit ptr { ... }

Defined in bit/pointers.fj — lines 85–89 (view on GitHub).

Depends on¶

Used by¶