aboutsummaryrefslogtreecommitdiff
path: root/crypto/arm_arch.h
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2011-07-17 17:40:29 +0000
committerAndy Polyakov <appro@openssl.org>2011-07-17 17:40:29 +0000
commit87873f4328274fc64b4089de6deabf52e5b2d481 (patch)
treeacd172d7a94fcc74f1ea9972571d587e1d7990a5 /crypto/arm_arch.h
parent9fe51d5f73fdd07d6bae82f415f203bafb4b00f5 (diff)
downloadopenssl-87873f4328274fc64b4089de6deabf52e5b2d481.zip
openssl-87873f4328274fc64b4089de6deabf52e5b2d481.tar.gz
openssl-87873f4328274fc64b4089de6deabf52e5b2d481.tar.bz2
ARM assembler pack: add platform run-time detection.
Diffstat (limited to 'crypto/arm_arch.h')
-rw-r--r--crypto/arm_arch.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/arm_arch.h b/crypto/arm_arch.h
index 82401ad..15027ed 100644
--- a/crypto/arm_arch.h
+++ b/crypto/arm_arch.h
@@ -18,7 +18,7 @@
*/
# if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
defined(__ARM_ARCH_7R__)|| defined(__ARM_ARCH_7M__) || \
- defined(__ARM_ARCH_7EM)
+ defined(__ARM_ARCH_7EM__)
# define __ARM_ARCH__ 7
# elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || \
defined(__ARM_ARCH_6K__)|| defined(__ARM_ARCH_6M__) || \
@@ -39,5 +39,12 @@
#include <openssl/fipssyms.h>
#endif
+#if !__ASSEMBLER__
+extern unsigned int OPENSSL_armcap_P;
+
+#define ARMV7_NEON (1<<0)
+#define ARMV7_TICK (1<<1)
+#endif
+
#endif
#endif