bit.ptr_wflip_2nd_wordΒΆ
Effectively: wflip (*ptr)+w, value
ptr is a bit[:w] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def ptr_wflip_2nd_word ptr, value { ... }
Defined in bit/pointers.fj β lines 132β136 (view on GitHub).
ComplexityΒΆ
Time:
3w@Space:
3w@
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ΒΆ
Click to view the macro body
def ptr_wflip_2nd_word ptr, value {
.not ptr + dw*((#w)-1)
.ptr_wflip ptr, value
.not ptr + dw*((#w)-1)
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
bit.exact_xor_from_ptrinbit/pointers.fj
β Previous: bit.pointers.advance_by_one_and_flip__ptr_wflip
Next: bit.xor_from_ptr β