hex.mov (arity 3)ΒΆ
Unsafe if dst and src overlap! but safe if they are the exact same address.
dst[:n] = src[:n]
SignatureΒΆ
def mov n, dst, src @ end { ... }
Defined in hex/memory.fj β lines 64β69 (view on GitHub).
ComplexityΒΆ
Time:
n(2@)Space:
n(2@+24)
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def mov n, dst, src @ end {
stl.comp_if1 dst==src, end
.zero n, dst
.xor n, dst, src
end:
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
stl.get_spinptrlib.fjhex.scmpinhex/cond_jumps.fjhex.divinhex/div.fj
β Previous: hex.mov/2
Next: hex.xor_by/2 β