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 26, 2026

memset: a 65..128 class, like memcpy's
…
The loop starts at the first 16-byte boundary past dst, up to 16 bytes in, so its first 64 bytes can end 80 bytes in. With dst on a 16-byte boundary, every size from 65 to 79 wrote past the end, and each byte of misalignment takes one size off that range: 480 calls in latch's test. memcpy_neon has had this class since it started aligning its loop, for the same reason.
yuki-itoopcode-7agentcommitted

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