1 /* $OpenBSD: arm_arch.h,v 1.8 2018/01/07 12:35:52 kettenis Exp $ */
5 #if !defined(__ARM_ARCH__)
7 # define __ARM_ARCH__ __TARGET_ARCH_ARM
8 # if defined(__BIG_ENDIAN)
13 # elif defined(__GNUC__)
15 * Why doesn't gcc define __ARM_ARCH__? Instead it defines
16 * bunch of below macros. See all_architectures[] table in
17 * gcc/config/arm/arm.c. On a side note it defines
18 * __ARMEL__/__ARMEB__ for little-/big-endian.
20 # if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
21 defined(__ARM_ARCH_7R__)|| defined(__ARM_ARCH_7M__) || \
22 defined(__ARM_ARCH_7EM__)
23 # define __ARM_ARCH__ 7
24 # elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || \
25 defined(__ARM_ARCH_6K__)|| defined(__ARM_ARCH_6M__) || \
26 defined(__ARM_ARCH_6Z__)|| defined(__ARM_ARCH_6ZK__) || \
27 defined(__ARM_ARCH_6T2__)
28 # define __ARM_ARCH__ 6
29 # elif defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || \
30 defined(__ARM_ARCH_5E__)|| defined(__ARM_ARCH_5TE__) || \
31 defined(__ARM_ARCH_5TEJ__)
32 # define __ARM_ARCH__ 5
33 # elif defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__)
34 # define __ARM_ARCH__ 4
36 # error "unsupported ARM architecture"
41 #if !defined(__ASSEMBLER__)
42 extern unsigned int OPENSSL_armcap_P
;
44 #define ARMV7_NEON (1<<0)
47 #if defined(__OpenBSD__)
48 #define __STRICT_ALIGNMENT