aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2018-12-19 02:34:17 -0800
committerMarat Dukhan <marat@fb.com>2018-12-19 02:34:17 -0800
commitdb14c2271115946c3c99671eda59344d0be6ccff (patch)
treee8da323c9eca2a2b924d042369530c61e7a7997c /include
parenta281cc9278b0ccaf8cfd607e8cbc56d194029b9d (diff)
downloadcpuinfo-db14c2271115946c3c99671eda59344d0be6ccff.tar.gz
Detect ARMv8.2 NEON DOT production instructions
Diffstat (limited to 'include')
-rw-r--r--include/cpuinfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/cpuinfo.h b/include/cpuinfo.h
index 84320dd..de75a06 100644
--- a/include/cpuinfo.h
+++ b/include/cpuinfo.h
@@ -1356,6 +1356,7 @@ static inline bool cpuinfo_has_x86_sha(void) {
#endif
bool rdm;
bool fp16arith;
+ bool dot;
bool jscvt;
bool fcma;
@@ -1583,6 +1584,14 @@ static inline bool cpuinfo_has_arm_fp16_arith(void) {
#endif
}
+static inline bool cpuinfo_has_arm_neon_dot(void) {
+ #if CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
+ return cpuinfo_isa.dot;
+ #else
+ return false;
+ #endif
+}
+
static inline bool cpuinfo_has_arm_jscvt(void) {
#if CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
return cpuinfo_isa.jscvt;