Home
last modified time | relevance | path

Searched refs:hwcap (Results 1 – 1 of 1) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/
Du_cpu_detect.c160 unsigned long hwcap = 0; in check_os_altivec_support() local
162 elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); in check_os_altivec_support()
164 size_t len = sizeof(hwcap); in check_os_altivec_support()
165 sysctlbyname("hw.cpu_features", &hwcap, &len, NULL, 0); in check_os_altivec_support()
167 if (hwcap & PPC_FEATURE_HAS_ALTIVEC) in check_os_altivec_support()
169 if (hwcap & PPC_FEATURE_HAS_VSX) in check_os_altivec_support()
182 uint64_t hwcap = aux.a_un.a_val; in check_os_altivec_support() local
183 util_cpu_caps.has_altivec = (hwcap >> 28) & 1; in check_os_altivec_support()
185 util_cpu_caps.has_vsx = (hwcap >> 7) & 1; in check_os_altivec_support()
410 unsigned long hwcap = 0; in check_os_arm_support()
[all …]