# neon-mem `memcpy` for AArch64, written around one idea: never loop over a byte count you can cover with two overlapping loads and stores. | Size | memcpy | |---|---| | 0–3 | first, middle and last byte | | 4–7 | two overlapping W moves | | 8–16 | two overlapping X moves | | 17–32 | two overlapping Q moves | | 33+ | a 16-byte Q loop, then the last 16 from the end | `memset` comes next, built the same way.