File indexing completed on 2025-01-18 09:48:05
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_PREDEF_ARCHITECTURE_MIPS_H
0009 #define BOOST_PREDEF_ARCHITECTURE_MIPS_H
0010
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013
0014
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 #define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER_NOT_AVAILABLE
0041
0042 #if defined(__mips__) || defined(__mips) || \
0043 defined(__MIPS__)
0044 # undef BOOST_ARCH_MIPS
0045 # if !defined(BOOST_ARCH_MIPS) && (defined(__mips))
0046 # define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(__mips,0,0)
0047 # endif
0048 # if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS1) || defined(_R3000))
0049 # define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(1,0,0)
0050 # endif
0051 # if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS2) || defined(__MIPS_ISA2__) || defined(_R4000))
0052 # define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(2,0,0)
0053 # endif
0054 # if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS3) || defined(__MIPS_ISA3__))
0055 # define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(3,0,0)
0056 # endif
0057 # if !defined(BOOST_ARCH_MIPS) && (defined(_MIPS_ISA_MIPS4) || defined(__MIPS_ISA4__))
0058 # define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER(4,0,0)
0059 # endif
0060 # if !defined(BOOST_ARCH_MIPS)
0061 # define BOOST_ARCH_MIPS BOOST_VERSION_NUMBER_AVAILABLE
0062 # endif
0063 #endif
0064
0065 #if BOOST_ARCH_MIPS
0066 # define BOOST_ARCH_MIPS_AVAILABLE
0067 #endif
0068
0069 #if BOOST_ARCH_MIPS
0070 # if BOOST_ARCH_MIPS >= BOOST_VERSION_NUMBER(3,0,0)
0071 # undef BOOST_ARCH_WORD_BITS_64
0072 # define BOOST_ARCH_WORD_BITS_64 BOOST_VERSION_NUMBER_AVAILABLE
0073 # else
0074 # undef BOOST_ARCH_WORD_BITS_32
0075 # define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
0076 # endif
0077 #endif
0078
0079 #define BOOST_ARCH_MIPS_NAME "MIPS"
0080
0081 #endif
0082
0083 #include <boost/predef/detail/test.h>
0084 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_MIPS,BOOST_ARCH_MIPS_NAME)