mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 18:48:36 -07:00
Integrate ARM/NEON crypto.
This commit is contained in:
parent
a376bcc654
commit
e7a2c6ecef
2 changed files with 96 additions and 67 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue