Lines Matching refs:features
100 uint64_t features = android_getCpuFeatures(); in _cpu_check_features() local
101 arm_cpu_enable_crc32 = !!(features & ANDROID_CPU_ARM64_FEATURE_CRC32); in _cpu_check_features()
102 arm_cpu_enable_pmull = !!(features & ANDROID_CPU_ARM64_FEATURE_PMULL); in _cpu_check_features()
104 uint64_t features = android_getCpuFeatures(); in _cpu_check_features()
105 arm_cpu_enable_crc32 = !!(features & ANDROID_CPU_ARM_FEATURE_CRC32); in _cpu_check_features()
106 arm_cpu_enable_pmull = !!(features & ANDROID_CPU_ARM_FEATURE_PMULL); in _cpu_check_features()
108 unsigned long features = getauxval(AT_HWCAP); in _cpu_check_features()
109 arm_cpu_enable_crc32 = !!(features & HWCAP_CRC32); in _cpu_check_features()
110 arm_cpu_enable_pmull = !!(features & HWCAP_PMULL); in _cpu_check_features()
113 unsigned long features = getauxval(AT_HWCAP2); in _cpu_check_features()
114 arm_cpu_enable_crc32 = !!(features & HWCAP2_CRC32); in _cpu_check_features()
115 arm_cpu_enable_pmull = !!(features & HWCAP2_PMULL); in _cpu_check_features()
117 uint32_t features; in _cpu_check_features()
118 zx_status_t rc = zx_system_get_features(ZX_FEATURE_KIND_CPU, &features); in _cpu_check_features()
119 if (rc != ZX_OK || (features & ZX_ARM64_FEATURE_ISA_ASIMD) == 0) in _cpu_check_features()
121 arm_cpu_enable_crc32 = !!(features & ZX_ARM64_FEATURE_ISA_CRC32); in _cpu_check_features()
122 arm_cpu_enable_pmull = !!(features & ZX_ARM64_FEATURE_ISA_PMULL); in _cpu_check_features()