File indexing completed on 2025-01-18 09:48:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_PREDEF_ARCHITECTURE_ARM_H
0011 #define BOOST_PREDEF_ARCHITECTURE_ARM_H
0012
0013 #include <boost/predef/version_number.h>
0014 #include <boost/predef/make.h>
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071 #define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_NOT_AVAILABLE
0072
0073 #if \
0074 defined(__ARM_ARCH) || defined(__TARGET_ARCH_ARM) || \
0075 defined(__TARGET_ARCH_THUMB) || defined(_M_ARM) || \
0076 defined(__arm__) || defined(__arm64) || defined(__thumb__) || \
0077 defined(_M_ARM64) || defined(__aarch64__) || defined(__AARCH64EL__) || \
0078 defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
0079 defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || \
0080 defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || \
0081 defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6T2__) || \
0082 defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__) || \
0083 defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_4__)
0084 # undef BOOST_ARCH_ARM
0085 # if !defined(BOOST_ARCH_ARM) && defined(__ARM_ARCH)
0086 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__ARM_ARCH,0,0)
0087 # endif
0088 # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_ARM)
0089 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_ARM,0,0)
0090 # endif
0091 # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_THUMB)
0092 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0)
0093 # endif
0094 # if !defined(BOOST_ARCH_ARM) && defined(_M_ARM)
0095 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(_M_ARM,0,0)
0096 # endif
0097 # if !defined(BOOST_ARCH_ARM) && ( \
0098 defined(__arm64) || defined(_M_ARM64) || defined(__aarch64__) || \
0099 defined(__AARCH64EL__) )
0100 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(8,0,0)
0101 # endif
0102 # if !defined(BOOST_ARCH_ARM) && ( \
0103 defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
0104 defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) )
0105 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(7,0,0)
0106 # endif
0107 # if !defined(BOOST_ARCH_ARM) && ( \
0108 defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || \
0109 defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6T2__) )
0110 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(6,0,0)
0111 # endif
0112 # if !defined(BOOST_ARCH_ARM) && ( \
0113 defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__) )
0114 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(5,0,0)
0115 # endif
0116 # if !defined(BOOST_ARCH_ARM) && ( \
0117 defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_4__) )
0118 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(4,0,0)
0119 # endif
0120 # if !defined(BOOST_ARCH_ARM)
0121 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_AVAILABLE
0122 # endif
0123 #endif
0124
0125 #if BOOST_ARCH_ARM
0126 # define BOOST_ARCH_ARM_AVAILABLE
0127 #endif
0128
0129 #if BOOST_ARCH_ARM
0130 # if BOOST_ARCH_ARM >= BOOST_VERSION_NUMBER(8,0,0)
0131 # undef BOOST_ARCH_WORD_BITS_64
0132 # define BOOST_ARCH_WORD_BITS_64 BOOST_VERSION_NUMBER_AVAILABLE
0133 # else
0134 # undef BOOST_ARCH_WORD_BITS_32
0135 # define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
0136 # endif
0137 #endif
0138
0139 #define BOOST_ARCH_ARM_NAME "ARM"
0140
0141 #endif
0142
0143 #include <boost/predef/detail/test.h>
0144 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_ARM,BOOST_ARCH_ARM_NAME)