summaryrefslogtreecommitdiff
path: root/crypto/arm_arch.h
diff options
context:
space:
mode:
authorappro <appro>2011-07-17 17:40:27 +0000
committerappro <appro>2011-07-17 17:40:27 +0000
commitd8170f0d8d535b7809fa076ce9c9da29662846a7 (patch)
tree07a1145d28e52327190c26981113f88657cbde6a /crypto/arm_arch.h
parenta096a947c9fb27b752dc5e2e96beba2f7800bf9f (diff)
downloadopenssl-d8170f0d8d535b7809fa076ce9c9da29662846a7.tar.gz
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 82401add1..15027ed3d 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