bit.mov (arity 3)¶
note: doesn’t work if dst and src overlap. works if dst==src.
dst[:n] = src[:n]
dst,src are bit.vec[:n].
Signature¶
def mov n, dst, src @ end { ... }
Defined in bit/memory.fj — lines 83–87 (view on GitHub).
Complexity¶
Time:
n(2@-2)Space:
n(2@-2)
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
rep(n, i) .unsafe_mov dst+i*dw, src+i*dw
end:
}
Depends on¶
Used by¶
Example uses¶
bit.print_dec_uintinbit/output.fjbit.mul10inbit/mul.fjbit.mul_loopinbit/mul.fj
← Previous: bit.mov/2
Next: bit.swap/2 →