Lines Matching refs:ext
15 #define riscv_isa_extension_available(isa_bitmap, ext) \ argument
16 __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
19 const unsigned long ext) in __riscv_has_extension_likely() argument
21 asm goto(ALTERNATIVE("j %l[l_no]", "nop", %[vendor], %[ext], 1) in __riscv_has_extension_likely()
23 : [vendor] "i" (vendor), [ext] "i" (ext) in __riscv_has_extension_likely()
33 const unsigned long ext) in __riscv_has_extension_unlikely() argument
35 asm goto(ALTERNATIVE("nop", "j %l[l_yes]", %[vendor], %[ext], 1) in __riscv_has_extension_unlikely()
37 : [vendor] "i" (vendor), [ext] "i" (ext) in __riscv_has_extension_unlikely()
46 static __always_inline bool riscv_has_extension_unlikely(const unsigned long ext) in riscv_has_extension_unlikely() argument
48 compiletime_assert(ext < RISCV_ISA_EXT_MAX, "ext must be < RISCV_ISA_EXT_MAX"); in riscv_has_extension_unlikely()
51 return __riscv_has_extension_unlikely(STANDARD_EXT, ext); in riscv_has_extension_unlikely()
53 return __riscv_isa_extension_available(NULL, ext); in riscv_has_extension_unlikely()
56 static __always_inline bool riscv_has_extension_likely(const unsigned long ext) in riscv_has_extension_likely() argument
58 compiletime_assert(ext < RISCV_ISA_EXT_MAX, "ext must be < RISCV_ISA_EXT_MAX"); in riscv_has_extension_likely()
61 return __riscv_has_extension_likely(STANDARD_EXT, ext); in riscv_has_extension_likely()
63 return __riscv_isa_extension_available(NULL, ext); in riscv_has_extension_likely()