hex.xor_by (arity 2)¶
hex ^= val (constant)
Signature¶
def xor_by hex, val { ... }
Defined in hex/memory.fj — lines 73–75 (view on GitHub).
Complexity¶
Time:
4 (avg. 2: #on-bits)Space:
4 (avg. 2: #on-bits)
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def xor_by hex, val {
wflip hex+w, (val > 0xf ? 0xf : (val < 0 ? 0 : val)) * dw
}
Used by¶
Example uses¶
← Previous: hex.mov/3
Next: hex.xor_by/3 →