aboutsummaryrefslogtreecommitdiff
path: root/include/cpuinfo.h
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2018-04-19 22:03:52 -0700
committerMarat Dukhan <marat@fb.com>2018-04-19 22:03:52 -0700
commit7abab75b798c630bb8f62fe16454ffe473be9f4c (patch)
tree0955e3c44cf78fee6ea238256973d81ac0a97c2b /include/cpuinfo.h
parent29642680c515621c16d3e9991eea4b865cb0ee95 (diff)
downloadcpuinfo-7abab75b798c630bb8f62fe16454ffe473be9f4c.tar.gz
Expose FP16 compute, RDM, JSCVT, and FCMA on AArch32
Diffstat (limited to 'include/cpuinfo.h')
-rw-r--r--include/cpuinfo.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/cpuinfo.h b/include/cpuinfo.h
index ae1fa01..0d10494 100644
--- a/include/cpuinfo.h
+++ b/include/cpuinfo.h
@@ -1328,11 +1328,11 @@ static inline bool cpuinfo_has_x86_sha(void) {
#endif
#if CPUINFO_ARCH_ARM64
bool atomics;
- bool rdm;
- bool fp16arith;
- bool jscvt;
- bool fcma;
#endif
+ bool rdm;
+ bool fp16arith;
+ bool jscvt;
+ bool fcma;
bool aes;
bool sha1;
@@ -1533,7 +1533,7 @@ static inline bool cpuinfo_has_arm_atomics(void) {
}
static inline bool cpuinfo_has_arm_neon_rdm(void) {
- #if CPUINFO_ARCH_ARM64
+ #if CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
return cpuinfo_isa.rdm;
#else
return false;
@@ -1541,7 +1541,7 @@ static inline bool cpuinfo_has_arm_neon_rdm(void) {
}
static inline bool cpuinfo_has_arm_fp16_arith(void) {
- #if CPUINFO_ARCH_ARM64
+ #if CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
return cpuinfo_isa.fp16arith;
#else
return false;
@@ -1549,7 +1549,7 @@ static inline bool cpuinfo_has_arm_fp16_arith(void) {
}
static inline bool cpuinfo_has_arm_jscvt(void) {
- #if CPUINFO_ARCH_ARM64
+ #if CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
return cpuinfo_isa.jscvt;
#else
return false;
@@ -1557,7 +1557,7 @@ static inline bool cpuinfo_has_arm_jscvt(void) {
}
static inline bool cpuinfo_has_arm_fcma(void) {
- #if CPUINFO_ARCH_ARM64
+ #if CPUINFO_ARCH_ARM || CPUINFO_ARCH_ARM64
return cpuinfo_isa.fcma;
#else
return false;