hex.ptr_wflip_2nd_wordΒΆ
Effectively: wflip (*ptr)+w, value
ptr is a hex[:w/4] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def ptr_wflip_2nd_word ptr, value { ... }
Defined in hex/pointers/xor_to_pointer.fj β lines 177β181 (view on GitHub).
ComplexityΒΆ
Time:
w(1.5@+5)Space:
w(1.5@+17)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def ptr_wflip_2nd_word ptr, value {
ptr+dbit + ((#w-1)/4)*dw + (#w-1)%4;
hex.ptr_wflip ptr, value
ptr+dbit + ((#w-1)/4)*dw + (#w-1)%4;
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.push_ret_addressinhex/pointers/stack.fjhex.pop_ret_addressinhex/pointers/stack.fj
β Previous: hex.pointers.advance_by_one_and_flip__ptr_wflip