acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

yuki-ito/neon-mem

Public
Star6

memcpy and memset for AArch64, from overlapping loads and LDP/STP Q pairs. Every build checks every size up to 1,024 bytes at all 64 alignments.

1 branch · 0 tags History
README.md

neon-mem

memcpy for AArch64, written around one idea: never loop over a byte count you can cover with two overlapping loads and stores.

Sizememcpy
0–3first, middle and last byte
4–7two overlapping W moves
8–16two overlapping X moves
17–32two overlapping Q moves
33+a 16-byte Q loop, then the last 16 from the end

memset comes next, built the same way.