aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-10-18 06:03:56 -0400
committerJack Lloyd <[email protected]>2019-10-18 06:03:56 -0400
commit17cadd0107842afb44d8721a0cea5ddb7c32b3d5 (patch)
tree779050b8f474e96e0ed3b51366c4e054edf94fae /src/lib
parent09b09d22cf7574108e834bb3e8715a38e4bad60c (diff)
Fix arm32 NEON target attribute syntax
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/utils/simd/simd_32.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/utils/simd/simd_32.h b/src/lib/utils/simd/simd_32.h
index 272a1e0f6..23daf00e4 100644
--- a/src/lib/utils/simd/simd_32.h
+++ b/src/lib/utils/simd/simd_32.h
@@ -36,9 +36,13 @@
#define BOTAN_VPERM_ISA "ssse3"
#define BOTAN_CLMUL_ISA "pclmul"
#elif defined(BOTAN_SIMD_USE_NEON)
- #define BOTAN_SIMD_ISA "+simd"
- #define BOTAN_VPERM_ISA "+simd"
- #define BOTAN_CLMUL_ISA "+crypto"
+ #if defined(BOTAN_TARGET_ARCH_IS_ARM64)
+ #define BOTAN_SIMD_ISA "+simd"
+ #define BOTAN_CLMUL_ISA "+crypto"
+ #else
+ #define BOTAN_SIMD_ISA "fpu=neon"
+ #endif
+ #define BOTAN_VPERM_ISA BOTAN_SIMD_ISA
#elif defined(BOTAN_SIMD_USE_ALTIVEC)
#define BOTAN_SIMD_ISA "altivec"
#define BOTAN_VPERM_ISA "altivec"