hex.xor_hex_to_ptr (arity 3)ΒΆ
Effectively: hex.xor *ptr[:n], hex[:n]
ptr is a hex[:w/4] that holds an address, which we assume is an hex-variable, which is dw-aligned.
SignatureΒΆ
def xor_hex_to_ptr n, ptr, hex { ... }
Defined in hex/pointers/xor_to_pointer.fj β lines 54β57 (view on GitHub).
ComplexityΒΆ
Time:
n(w(0.5@+2) + 14@+26)Space:
n(w(0.9@+17) + 10@+131)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def xor_hex_to_ptr n, ptr, hex {
rep(n, i) .pointers.xor_hex_to_ptr_and_inc ptr, hex + i*dw
.ptr_sub ptr, n
}
Depends onΒΆ
β Previous: hex.xor_byte_to_ptr/2
Next: hex.xor_byte_to_ptr/3 β