AArch64: Improve strnlen performance
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 1 Jul 2021 14:30:42 +0000 (15:30 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 1 Jul 2021 14:32:36 +0000 (15:32 +0100)
commit252cad02d4c63540501b9b8c988cb91248563224
treef43c836158ad49a84b5b348d241d59eb97a9bd0a
parenteb68d7d23cc411acdf68a60f194343a6774d6194
AArch64: Improve strnlen performance

Optimize strnlen by avoiding UMINV which is slow on most cores. On Neoverse N1
large strings are 1.8x faster than the current version, and bench-strnlen is
50% faster overall. This version is MTE compatible.

Reviewed-by: Szabolcs Nagy <szabolcs.nagy@arm.com>
sysdeps/aarch64/strnlen.S