summaryrefslogtreecommitdiff
path: root/cpu.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-08-17 02:15:42 -0400
committerJeffrey Walton <noloader@gmail.com>2017-08-17 02:15:42 -0400
commit7779fa3e7ab3ddf02efdd9a688cb874ac93b8e98 (patch)
tree86d47ec92019d83e8df3a3efae5703cafca14eed /cpu.h
parent6e35e7387a7bc9c7fd81a4c80266d500c81d051a (diff)
downloadcryptopp-git-7779fa3e7ab3ddf02efdd9a688cb874ac93b8e98.tar.gz
Fix NEON detection on Aarch32 and Aarch64
I wish GCC would get its head out of its ass and define the apprpriate defines. NEON/ASIMD cannot be disgorged from Aarch32/Aarch64 just like SSE2 cannot be disgorged from x86_64. They are core instruction sets
Diffstat (limited to 'cpu.h')
-rw-r--r--cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu.h b/cpu.h
index d833f95c..d1ccf6f1 100644
--- a/cpu.h
+++ b/cpu.h
@@ -22,7 +22,7 @@
# if defined(__GNUC__)
# include <stdint.h>
# endif
-# if defined(__ARM_NEON) || defined(_MSC_VER)
+# if defined(__ARM_NEON) || defined(__aarch32__) || defined(__aarch64__) || defined(_MSC_VER)
# include <arm_neon.h>
# endif
# if defined(__GNUC__) && !defined(__apple_build_version__)