hex.xor_by (arity 3)ΒΆ
hex[:n] ^= val (constant)
SignatureΒΆ
def xor_by n, hex, val { ... }
Defined in hex/memory.fj β lines 79β81 (view on GitHub).
ComplexityΒΆ
Time:
4n (avg. 2n: #on-bits)Space:
4n (avg. 2n: #on-bits)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def xor_by n, hex, val {
rep(n, i) .xor_by hex+i*dw, (val>>(4*i))&0xf
}
β Previous: hex.xor_by/2
Next: hex.set/2 β