aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2024-11-02 10:52:54 +0100
committerAurelien Jarno <aurelien@aurel32.net>2024-11-05 21:03:37 +0100
commit273694cd78a2e12f44f8aacc88ec15853feb759a (patch)
treebe78bd0737c90740f9b297e0ca3415d55ff03512
parente442e8376dcb14c904523c78994157cb5b502ff1 (diff)
downloadglibc-273694cd78a2e12f44f8aacc88ec15853feb759a.zip
glibc-273694cd78a2e12f44f8aacc88ec15853feb759a.tar.gz
glibc-273694cd78a2e12f44f8aacc88ec15853feb759a.tar.bz2
Add Arm HWCAP2_* constants from Linux 3.15 and 6.2 to <bits/hwcap.h>
Linux 3.15 and 6.2 added HWCAP2_* values for Arm. These bits have already been added to dl-procinfo.{c,h} in commits 9aea0cb842f02 and 8ebe9c0b38a9. Also add them to <bits/hwcap.h> so that they can be used in user code. For example, for checking bits in the value returned by getauxval(AT_HWCAP2). Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Yury Khrustalev <yury.khrustalev@arm.com>
-rw-r--r--sysdeps/unix/sysv/linux/arm/bits/hwcap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/bits/hwcap.h b/sysdeps/unix/sysv/linux/arm/bits/hwcap.h
index b104de4..7b573fa 100644
--- a/sysdeps/unix/sysv/linux/arm/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/arm/bits/hwcap.h
@@ -49,3 +49,11 @@
#define HWCAP_ASIMDFHM 33554432
#define HWCAP_ASIMDBF16 67108864
#define HWCAP_I8MM 134217728
+
+#define HWCAP2_AES 1
+#define HWCAP2_PMULL 2
+#define HWCAP2_SHA1 4
+#define HWCAP2_SHA2 8
+#define HWCAP2_CRC32 16
+#define HWCAP2_SB 32
+#define HWCAP2_SSBS 64