Differential D16880 Diff 47988 head/net/zerotier/files/patch-ext_arm32-neon-salsa2012-asm_salsa2012.h
Changeset View
Changeset View
Standalone View
Standalone View
head/net/zerotier/files/patch-ext_arm32-neon-salsa2012-asm_salsa2012.h
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- ext/arm32-neon-salsa2012-asm/salsa2012.h.orig 2018-07-27 21:14:09 UTC | |||||
+++ 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 |