diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-19 17:11:56 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-19 17:11:56 -0700 |
commit | e7a2c6ecefc95422145385fdfd3ff137e5d290ac (patch) | |
tree | cade82e9df3b3122e22791744dd80a687fad7585 /ext/arm32-neon-salsa2012-asm | |
parent | a376bcc654edc5ad2fb19e3d86be18a23c882437 (diff) | |
download | infinitytier-e7a2c6ecefc95422145385fdfd3ff137e5d290ac.tar.gz infinitytier-e7a2c6ecefc95422145385fdfd3ff137e5d290ac.zip |
Integrate ARM/NEON crypto.
Diffstat (limited to 'ext/arm32-neon-salsa2012-asm')
-rw-r--r-- | ext/arm32-neon-salsa2012-asm/salsa2012.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/arm32-neon-salsa2012-asm/salsa2012.h b/ext/arm32-neon-salsa2012-asm/salsa2012.h index 719b2e0c..95b247f2 100644 --- a/ext/arm32-neon-salsa2012-asm/salsa2012.h +++ b/ext/arm32-neon-salsa2012-asm/salsa2012.h @@ -4,7 +4,7 @@ #if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux) #include <sys/auxv.h> #include <asm/hwcap.h> -#define zt_arm_has_neon() (getauxval(AT_HWCAP) & HWCAP_NEON) +#define zt_arm_has_neon() ((getauxval(AT_HWCAP) & HWCAP_NEON) != 0) #else #define zt_arm_has_neon() (true) #endif |