AArch64: Optimize memcmp
commitb51eb35c572b015641f03e3682c303f7631279b7
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 2 Dec 2021 18:30:55 +0000 (2 18:30 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 2 Dec 2021 18:35:53 +0000 (2 18:35 +0000)
tree3d430053c36fd853ed02f96873c215406eba7e47
parentd120fb9941be1fb1934f0b50c6ad64e4c5e404fb
AArch64: Optimize memcmp

Rewrite memcmp to improve performance. On small and medium inputs performance
is 10-20% better. Large inputs use a SIMD loop processing 64 bytes per
iteration, which is 30-50% faster depending on the size.

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