[PATCH v2] aarch64: add optimised strspn/strcspn

Florian Weimer fweimer@redhat.com
Wed Aug 27 13:30:14 GMT 2025


> +	/* Align beginning of function to a multiple of 32 but not 64 */
> +	.text
> +	.balign 64
> +	.nop
> +	.balign 32
> +#ifndef USE_AS_STRCSPN
> +	nop	/* Better before the start than after */
> +	nop
> +#endif
> +ENTRY_ALIGN(STRSPN, 0)

Isn't using ENTRY_ALIGN after the manual alignment a bit brittle?

Thanks,
Florian



More information about the Libc-alpha mailing list