• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:features

1 /* arm_features.c -- ARM processor features detection.
4 * Use of this source code is governed by a BSD-style license that can be
20 #include <cpu-features.h>
25 #include <zircon/features.h>
57 * See http://bit.ly/2CcoEsr for run-time detection of ARM features and also
63 uint64_t features = android_getCpuFeatures(); in _arm_check_features() local
64 arm_cpu_enable_crc32 = !!(features & ANDROID_CPU_ARM64_FEATURE_CRC32); in _arm_check_features()
65 arm_cpu_enable_pmull = !!(features & ANDROID_CPU_ARM64_FEATURE_PMULL); in _arm_check_features()
67 uint64_t features = android_getCpuFeatures(); in _arm_check_features()
68 arm_cpu_enable_crc32 = !!(features & ANDROID_CPU_ARM_FEATURE_CRC32); in _arm_check_features()
69 arm_cpu_enable_pmull = !!(features & ANDROID_CPU_ARM_FEATURE_PMULL); in _arm_check_features()
71 unsigned long features = getauxval(AT_HWCAP); in _arm_check_features()
72 arm_cpu_enable_crc32 = !!(features & HWCAP_CRC32); in _arm_check_features()
73 arm_cpu_enable_pmull = !!(features & HWCAP_PMULL); in _arm_check_features()
75 /* Query HWCAP2 for ARMV8-A SoCs running in aarch32 mode */ in _arm_check_features()
76 unsigned long features = getauxval(AT_HWCAP2); in _arm_check_features()
77 arm_cpu_enable_crc32 = !!(features & HWCAP2_CRC32); in _arm_check_features()
78 arm_cpu_enable_pmull = !!(features & HWCAP2_PMULL); in _arm_check_features()
80 uint32_t features; in _arm_check_features()
81 zx_status_t rc = zx_system_get_features(ZX_FEATURE_KIND_CPU, &features); in _arm_check_features()
82 if (rc != ZX_OK || (features & ZX_ARM64_FEATURE_ISA_ASIMD) == 0) in _arm_check_features()
84 arm_cpu_enable_crc32 = !!(features & ZX_ARM64_FEATURE_ISA_CRC32); in _arm_check_features()
85 arm_cpu_enable_pmull = !!(features & ZX_ARM64_FEATURE_ISA_PMULL); in _arm_check_features()