]> sourceware.org Git - glibc.git/commitdiff
Add Arm HWCAP2_* constants from Linux 3.15 and 6.2 to <bits/hwcap.h> master
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 2 Nov 2024 09:52:54 +0000 (10:52 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 5 Nov 2024 20:03:37 +0000 (21:03 +0100)
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>
sysdeps/unix/sysv/linux/arm/bits/hwcap.h

index b104de473c73089e28c3afab0986c1dad8009eac..7b573facb96673903dfd486006f531a01bcaf63f 100644 (file)
 #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
This page took 0.050478 seconds and 5 git commands to generate.