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