8#include <botan/internal/cpuid.h>
10#include <botan/internal/os_utils.h>
14#if defined(BOTAN_TARGET_ARCH_IS_ARM32)
16uint32_t CPUID::CPUID_Data::detect_cpu_features(uint32_t allowed) {
27 enum class ARM_hwcap_bit : uint64_t {
37 feat |= if_set(hwcap_neon, ARM_hwcap_bit::NEON_bit, CPUID::CPUID_ARM_NEON_BIT, allowed);
39 if(feat & CPUID::CPUID_ARM_NEON_BIT) {
42 feat |= if_set(hwcap_crypto, ARM_hwcap_bit::AES_bit, CPUID::CPUID_ARM_AES_BIT, allowed);
44 feat |= if_set(hwcap_crypto, ARM_hwcap_bit::PMULL_bit, CPUID::CPUID_ARM_PMULL_BIT, allowed);
46 feat |= if_set(hwcap_crypto, ARM_hwcap_bit::SHA1_bit, CPUID::CPUID_ARM_SHA1_BIT, allowed);
48 feat |= if_set(hwcap_crypto, ARM_hwcap_bit::SHA2_bit, CPUID::CPUID_ARM_SHA2_BIT, allowed);
unsigned long auxval_hwcap()
unsigned long get_auxval(unsigned long id)
unsigned long auxval_hwcap2()