Searched refs:hwcap (Results 1 – 7 of 7) sorted by relevance
47 extern "C" fn_ptr_t hwcap_resolver(uint64_t hwcap, __ifunc_arg_t* arg) in hwcap_resolver() argument49 g_hwcap = hwcap; in hwcap_resolver()58 extern "C" fn_ptr_t hwcap_resolver(unsigned long hwcap) { in hwcap_resolver() argument59 g_hwcap = hwcap; in hwcap_resolver()73 extern "C" fn_ptr_t hwcap_resolver(uint64_t hwcap, __riscv_hwprobe_t hwprobe_ptr, void* null) { in hwcap_resolver() argument74 g_hwcap = hwcap; in hwcap_resolver()91 int hwcap() __attribute__((ifunc("hwcap_resolver")));93 TEST(ifunc, hwcap) { in TEST() argument94 ASSERT_EQ(42, hwcap()); in TEST()
34 __attribute__((__unused__)) unsigned long hwcap = getauxval(AT_HWCAP); in TEST() local46 __attribute__((__unused__)) unsigned long hwcap = getauxval(AT_HWCAP2); in TEST() local
54 static unsigned long hwcap = getauxval(AT_HWCAP); in __bionic_call_ifunc_resolver()55 return reinterpret_cast<ifunc_resolver_t>(resolver_addr)(hwcap); in __bionic_call_ifunc_resolver()61 static uint64_t hwcap = getauxval(AT_HWCAP); in __bionic_call_ifunc_resolver()62 return reinterpret_cast<ifunc_resolver_t>(resolver_addr)(hwcap, __riscv_hwprobe, nullptr); in __bionic_call_ifunc_resolver()
35 #define IFUNC_ARGS (uint64_t hwcap __attribute__((unused)), \38 #define IFUNC_ARGS (unsigned long hwcap __attribute__((unused)))
41 #if __has_include(<asm/hwcap.h>)
33 static inline bool __bionic_is_oryon(unsigned long hwcap) { in __bionic_is_oryon() argument34 if (!(hwcap & HWCAP_CPUID)) return false; in __bionic_is_oryon()
152 return memmove_resolver(hwcap); in DEFINE_IFUNC_FOR()