about summary refs log tree commit diff
path: root/sysdeps/aarch64/multiarch/memcpy.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2022-10-26 14:16:50 +0100
committerWilco Dijkstra <wilco.dijkstra@arm.com>2024-04-09 18:52:29 +0100
commit91ac82d0c61076aa55ac08f6c7b58c5c28dd2f59 (patch)
treeed72267d3b3bafe99191a7e36193df9628cf08b8 /sysdeps/aarch64/multiarch/memcpy.c
parent4818620ee2f938120cc1fa5f868a9feedf138cdc (diff)
downloadglibc-91ac82d0c61076aa55ac08f6c7b58c5c28dd2f59.tar.gz
glibc-91ac82d0c61076aa55ac08f6c7b58c5c28dd2f59.tar.xz
glibc-91ac82d0c61076aa55ac08f6c7b58c5c28dd2f59.zip
aarch64: Use memcpy_simd as the default memcpy
Since __memcpy_simd is the fastest memcpy on almost all cores, replace
the generic memcpy with it.

(cherry picked from commit e6f3fe362f1aab78b1448d69ecdbd9e3872636d3)
Diffstat (limited to 'sysdeps/aarch64/multiarch/memcpy.c')
-rw-r--r--sysdeps/aarch64/multiarch/memcpy.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/aarch64/multiarch/memcpy.c b/sysdeps/aarch64/multiarch/memcpy.c
index 0e0a5cbcfb..c51d948881 100644
--- a/sysdeps/aarch64/multiarch/memcpy.c
+++ b/sysdeps/aarch64/multiarch/memcpy.c
@@ -29,7 +29,6 @@
 extern __typeof (__redirect_memcpy) __libc_memcpy;
 
 extern __typeof (__redirect_memcpy) __memcpy_generic attribute_hidden;
-extern __typeof (__redirect_memcpy) __memcpy_simd attribute_hidden;
 extern __typeof (__redirect_memcpy) __memcpy_thunderx attribute_hidden;
 extern __typeof (__redirect_memcpy) __memcpy_thunderx2 attribute_hidden;
 extern __typeof (__redirect_memcpy) __memcpy_falkor attribute_hidden;
@@ -41,10 +40,7 @@ libc_ifunc (__libc_memcpy,
 		? __memcpy_falkor
 		: (IS_THUNDERX2 (midr) || IS_THUNDERX2PA (midr)
 		  ? __memcpy_thunderx2
-		  : (IS_NEOVERSE_N1 (midr) || IS_NEOVERSE_N2 (midr)
-		     || IS_NEOVERSE_V1 (midr)
-		     ? __memcpy_simd
-		     : __memcpy_generic)))));
+		  : __memcpy_generic))));
 
 # undef memcpy
 strong_alias (__libc_memcpy, memcpy);