AES-NI/NEON detection for iOS

Requires 64-bit CPU
This commit is contained in:
Grant Limberg 2020-09-21 13:17:12 -07:00
parent 1ff45020e2
commit 0f2887265c
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
3 changed files with 22 additions and 0 deletions

View file

@ -18,6 +18,10 @@
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif
#ifdef __APPLE__
#include <arm_neon.h>
#endif
#define Te1_r(x) ZT_ROR32(Te0[x], 8U)
#define Te2_r(x) ZT_ROR32(Te0[x], 16U)
#define Te3_r(x) ZT_ROR32(Te0[x], 24U)