[PATCH v2] aarch64: add optimised strspn/strcspn

Wilco Dijkstra Wilco.Dijkstra@arm.com
Wed Aug 20 10:51:41 GMT 2025


Hi,

One more thing I forgot, there isn't a red zone defined in AArch64 ABI, so the top
128 bits may be corrupted when you store below SP.

+#ifdef USE_AS_STRCSPN
+       stp     xzr, xzr, [sp, -16]
+       stp     xzr, xzr, [sp, -32]!

Cheers,
Wilco


More information about the Libc-alpha mailing list