8750 loader: vdev_read() needs to be careful about large sectors
[unleashed.git] / lib / libcrypto / arm_arch.h
blob8b8a05b5f7158c6b383e0d750cb94af21504e166
1 /* $OpenBSD: arm_arch.h,v 1.8 2018/01/07 12:35:52 kettenis Exp $ */
2 #ifndef __ARM_ARCH_H__
3 #define __ARM_ARCH_H__
5 #if !defined(__ARM_ARCH__)
6 # if defined(__CC_ARM)
7 # define __ARM_ARCH__ __TARGET_ARCH_ARM
8 # if defined(__BIG_ENDIAN)
9 # define __ARMEB__
10 # else
11 # define __ARMEL__
12 # endif
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
35 # else
36 # error "unsupported ARM architecture"
37 # endif
38 # endif
39 #endif
41 #if !defined(__ASSEMBLER__)
42 extern unsigned int OPENSSL_armcap_P;
44 #define ARMV7_NEON (1<<0)
45 #endif
47 #if defined(__OpenBSD__)
48 #define __STRICT_ALIGNMENT
49 #endif
51 #endif