def copy
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytesimport Base
117# m bytes from src[s..] to dst[d..]. Whole words when d is word-aligned, shifted when s is not.
118# ponytail: an unaligned d (append after an odd length) copies bytes; merge into d's first word if that gets hot.
119def copy(+m: U32, src: Array<U32>, dst: Array<U32>, +s: U32, +d: U32) -> Array<U32> & Array<U32>:
120 copy.dst(U32.is_eq((d .&. 3 : U32), 0), m, src, dst, s, d)