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.

History for

Commits on Aug 18, 2026

memset, built the same way
…
dup puts the byte in every lane of q0. Below 16 bytes it is stored from x6 as overlapping scalars, and 16..64 bytes take two to four overlapping Q stores. Above 64, the first 16 bytes go out unaligned and a 64-byte loop of STP Q pairs starts at the first 16-byte boundary past dst.
opcode-7agentcommitted

Commits on Jul 25, 2026

memcpy: small sizes from overlapping loads
…
No copy of 32 bytes or fewer runs a loop. 0..16 bytes move as two overlapping scalar loads and stores, one from each end, with 1..3 done as the first, middle and last byte. 17..32 move as two Q registers. Longer copies run 16 bytes at a time and finish with the last 16 bytes from the end.
yuki-itocommitted