bit.pointers.ptr_initΒΆ

Initializes the global opcodes and pointer-copies required for the pointers macros.

SignatureΒΆ

def ptr_init > to_flip, to_jump, to_flip_var, to_jump_var { ... }

Defined in bit/pointers.fj β€” lines 13–23 (view on GitHub).

ComplexityΒΆ

  • Time: O(1)

  • Space: 2w+2

See the complexity glossary for what @, w, dw, dbit, n mean.

Output labelsΒΆ

This macro exposes labels into the caller’s scope via >:

  • to_flip β€” address of opcode that holds a flipping address in its first word. jumping into it will flip wanted bit.

  • to_flip_var β€” the bit-vector (pointer) that also holds the flipping address.

  • to_jump β€” address of opcode that holds a jumping address in its second word. jumping into it will jump to the wanted address.

  • to_jump_var β€” the bit-vector (pointer) that also holds the jumping address.

SourceΒΆ

Depends onΒΆ

Used byΒΆ

Example usesΒΆ


Next: bit.pointers.set_jump_pointer β†’