We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f229129 commit de2f71eCopy full SHA for de2f71e
include/cpuinfo.h
@@ -1560,6 +1560,16 @@ static inline bool cpuinfo_has_arm_neon_rdm(void) {
1560
#endif
1561
}
1562
1563
+static inline bool cpuinfo_has_arm_neon_fp16_arith(void) {
1564
+ #if CPUINFO_ARCH_ARM
1565
+ return cpuinfo_isa.neon && cpuinfo_isa.fp16arith;
1566
+ #elif CPUINFO_ARCH_ARM64
1567
+ return cpuinfo_isa.fp16arith;
1568
+ #else
1569
+ return false;
1570
+ #endif
1571
+}
1572
+
1573
static inline bool cpuinfo_has_arm_fp16_arith(void) {
1574
#if CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
1575
return cpuinfo_isa.fp16arith;
0 commit comments