From 7abab75b798c630bb8f62fe16454ffe473be9f4c Mon Sep 17 00:00:00 2001 From: Marat Dukhan Date: Thu, 19 Apr 2018 22:03:52 -0700 Subject: Expose FP16 compute, RDM, JSCVT, and FCMA on AArch32 --- include/cpuinfo.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include') 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; -- cgit v1.2.3