bit.exact_xorΒΆ
note: pad 2 is needed, but pad 8 is used for wflips-padding optimization and for smaller wflips.
dst(bit_address) ^= src
dst,src are bits.
SignatureΒΆ
def exact_xor dst, src @ base_jump_label, cleanup { ... }
Defined in bit/logics.fj β lines 23β31 (view on GitHub).
ComplexityΒΆ
Time:
@-1Space:
@-1
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def exact_xor dst, src @ base_jump_label, cleanup {
wflip src+w, base_jump_label, src
pad 8
base_jump_label:
;cleanup
dst;
cleanup:
wflip src+w, base_jump_label
}
Used byΒΆ
Example usesΒΆ
bit.xorinbit/logics.fj
β Previous: bit.xor/3
Next: bit.double_exact_xor β