Lines Matching refs:hwcap
150 unsigned long hwcap = 0; in check_os_altivec_support() local
152 elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); in check_os_altivec_support()
154 size_t len = sizeof(hwcap); in check_os_altivec_support()
155 sysctlbyname("hw.cpu_features", &hwcap, &len, NULL, 0); in check_os_altivec_support()
157 if (hwcap & PPC_FEATURE_HAS_ALTIVEC) in check_os_altivec_support()
159 if (hwcap & PPC_FEATURE_HAS_VSX) in check_os_altivec_support()
172 uint64_t hwcap = aux.a_un.a_val; in check_os_altivec_support() local
173 util_cpu_caps.has_altivec = (hwcap >> 28) & 1; in check_os_altivec_support()
175 util_cpu_caps.has_vsx = (hwcap >> 7) & 1; in check_os_altivec_support()
398 unsigned long hwcap = 0; in check_os_arm_support()
399 elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); in check_os_arm_support()
400 if (hwcap & HWCAP_NEON) in check_os_arm_support()
418 uint32_t hwcap = aux.a_un.a_val; in check_os_arm_support()
420 util_cpu_caps.has_neon = (hwcap >> 12) & 1; in check_os_arm_support()
449 uint64_t hwcap = aux.a_un.a_val; in check_os_mips64_support() local
451 util_cpu_caps.has_msa = (hwcap >> 1) & 1; in check_os_mips64_support()