]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
AArch64: Rename IS_ARES to IS_NEOVERSE_N1
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 15 Jul 2020 15:58:07 +0000 (16:58 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Wed, 14 Oct 2020 16:29:12 +0000 (17:29 +0100)
Rename IS_ARES to IS_NEOVERSE_N1 since that is a bit clearer.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 0f6278a8793a5d04ea31878119eccf99f469a02d)

sysdeps/aarch64/multiarch/memcpy.c
sysdeps/aarch64/multiarch/memmove.c
sysdeps/unix/sysv/linux/aarch64/cpu-features.h

index a6774f0d17d2b93b29bcde575b16d59ad2e32a29..18b5f5154314eafbd8b16f811b233412a80050f3 100644 (file)
@@ -41,7 +41,9 @@ libc_ifunc (__libc_memcpy,
                ? __memcpy_falkor
                : (IS_THUNDERX2 (midr) || IS_THUNDERX2PA (midr)
                  ? __memcpy_thunderx2
-                 : (IS_ARES (midr) ? __memcpy_simd : __memcpy_generic)))));
+                 : (IS_NEOVERSE_N1 (midr)
+                    ? __memcpy_simd
+                    : __memcpy_generic)))));
 
 # undef memcpy
 strong_alias (__libc_memcpy, memcpy);
index 6f585b3758c894da3bfa44286297d3816eb582d3..bc3f2e566d4bc1f4ee5610b64e5e5e0447d87897 100644 (file)
@@ -38,7 +38,9 @@ libc_ifunc (__libc_memmove,
             ? __memmove_thunderx
             : (IS_FALKOR (midr) || IS_PHECDA (midr)
                ? __memmove_falkor
-                 : (IS_ARES (midr) ? __memmove_simd : __memmove_generic))));
+                 : (IS_NEOVERSE_N1 (midr)
+                    ? __memmove_simd
+                    : __memmove_generic))));
 
 # undef memmove
 strong_alias (__libc_memmove, memmove);
index 153d258afe975ab463580cba4248a6950126c89a..c52ed7fc12713223fddeaecdfc46810f9c97b2df 100644 (file)
@@ -51,8 +51,8 @@
 
 #define IS_PHECDA(midr) (MIDR_IMPLEMENTOR(midr) == 'h'                       \
                         && MIDR_PARTNUM(midr) == 0x000)
-#define IS_ARES(midr) (MIDR_IMPLEMENTOR(midr) == 'A'                         \
-                       && MIDR_PARTNUM(midr) == 0xd0c)
+#define IS_NEOVERSE_N1(midr) (MIDR_IMPLEMENTOR(midr) == 'A'                  \
+                             && MIDR_PARTNUM(midr) == 0xd0c)
 
 struct cpu_features
 {