| 1 | /* Defines for bits in AT_HWCAP. ARM Linux version. |
| 2 | Copyright (C) 2012-2026 Free Software Foundation, Inc. |
| 3 | This file is part of the GNU C Library. |
| 4 | |
| 5 | The GNU C Library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | The GNU C Library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with the GNU C Library; if not, see |
| 17 | <https://www.gnu.org/licenses/>. */ |
| 18 | |
| 19 | #if !defined (_SYS_AUXV_H) && !defined (_LINUX_ARM_SYSDEP_H) |
| 20 | # error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead." |
| 21 | #endif |
| 22 | |
| 23 | /* The following must match the kernel's <asm/hwcap.h>. */ |
| 24 | #define HWCAP_ARM_SWP		1 |
| 25 | #define HWCAP_ARM_HALF		2 |
| 26 | #define HWCAP_ARM_THUMB		4 |
| 27 | #define HWCAP_ARM_26BIT		8 |
| 28 | #define HWCAP_ARM_FAST_MULT	16 |
| 29 | #define HWCAP_ARM_FPA		32 |
| 30 | #define HWCAP_ARM_VFP		64 |
| 31 | #define HWCAP_ARM_EDSP		128 |
| 32 | #define HWCAP_ARM_JAVA		256 |
| 33 | #define HWCAP_ARM_IWMMXT	512 |
| 34 | #define HWCAP_ARM_CRUNCH	1024 |
| 35 | #define HWCAP_ARM_THUMBEE	2048 |
| 36 | #define HWCAP_ARM_NEON		4096 |
| 37 | #define HWCAP_ARM_VFPv3		8192 |
| 38 | #define HWCAP_ARM_VFPv3D16	16384 |
| 39 | #define HWCAP_ARM_TLS		32768 |
| 40 | #define HWCAP_ARM_VFPv4		65536 |
| 41 | #define HWCAP_ARM_IDIVA		131072 |
| 42 | #define HWCAP_ARM_IDIVT		262144 |
| 43 | #define HWCAP_ARM_VFPD32	524288 |
| 44 | #define HWCAP_ARM_LPAE		1048576 |
| 45 | #define HWCAP_ARM_EVTSTRM	2097152 |
| 46 | #define HWCAP_FPHP		4194304 |
| 47 | #define HWCAP_ASIMDHP		8388608 |
| 48 | #define HWCAP_ASIMDDP		16777216 |
| 49 | #define HWCAP_ASIMDFHM		33554432 |
| 50 | #define HWCAP_ASIMDBF16		67108864 |
| 51 | #define HWCAP_I8MM		134217728 |
| 52 | |
| 53 | #define HWCAP2_AES		1 |
| 54 | #define HWCAP2_PMULL		2 |
| 55 | #define HWCAP2_SHA1		4 |
| 56 | #define HWCAP2_SHA2		8 |
| 57 | #define HWCAP2_CRC32		16 |
| 58 | #define HWCAP2_SB		32 |
| 59 | #define HWCAP2_SSBS		64 |