diff options
author | Vincent Milum Jr <git@darkain.com> | 2018-09-12 19:51:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 19:51:28 -0700 |
commit | cffb992ae84723e7d7b230845cc2cf8e0acf67ab (patch) | |
tree | 38dbf7449c9cd0a75ab6b44cff3dc12e188532dd | |
parent | 39e720e811229770e0ee860ac62ec484c08a9db4 (diff) | |
download | infinitytier-cffb992ae84723e7d7b230845cc2cf8e0acf67ab.tar.gz infinitytier-cffb992ae84723e7d7b230845cc2cf8e0acf67ab.zip |
Adding ARM/NEON detection for non-Linux targets
-rw-r--r-- | ext/arm32-neon-salsa2012-asm/salsa2012.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/arm32-neon-salsa2012-asm/salsa2012.h b/ext/arm32-neon-salsa2012-asm/salsa2012.h index 95b247f2..262c9b9b 100644 --- a/ext/arm32-neon-salsa2012-asm/salsa2012.h +++ b/ext/arm32-neon-salsa2012-asm/salsa2012.h @@ -5,8 +5,10 @@ #include <sys/auxv.h> #include <asm/hwcap.h> #define zt_arm_has_neon() ((getauxval(AT_HWCAP) & HWCAP_NEON) != 0) -#else +#elif defined(__ARM_NEON__) || defined(__ARM_NEON) #define zt_arm_has_neon() (true) +#else +#define zt_arm_has_neon() (false) #endif #ifdef __cplusplus |