Enable AES-NI on Android X86-64

Need to find the magic incantation to enable it on ARM64 still
This commit is contained in:
Grant Limberg 2020-09-21 18:05:25 -07:00
parent 0f2887265c
commit 9e6dba9066
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
2 changed files with 9 additions and 1 deletions

View file

@ -111,8 +111,10 @@
#include <mmintrin.h>
#endif
#if (defined(__ARM_NEON) || defined(__ARM_NEON__) || defined(ZT_ARCH_ARM_HAS_NEON))
#if defined(__APPLE__) && !defined(__LP64__)
#if (defined(__APPLE__) && !defined(__LP64__)) || defined(__ANDROID__)
#ifdef ZT_ARCH_ARM_HAS_NEON
#undef ZT_ARCH_ARM_HAS_NEON
#endif