Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
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 /* tag::reference[]
0015 = `BOOST_ARCH_MIPS`
0016 
0017 http://en.wikipedia.org/wiki/MIPS_architecture[MIPS] architecture.
0018 
0019 [options="header"]
0020 |===
0021 | {predef_symbol} | {predef_version}
0022 
0023 | `+__mips__+` | {predef_detection}
0024 | `+__mips+` | {predef_detection}
0025 | `+__MIPS__+` | {predef_detection}
0026 
0027 | `+__mips+` | V.0.0
0028 | `+_MIPS_ISA_MIPS1+` | 1.0.0
0029 | `+_R3000+` | 1.0.0
0030 | `+_MIPS_ISA_MIPS2+` | 2.0.0
0031 | `+__MIPS_ISA2__+` | 2.0.0
0032 | `+_R4000+` | 2.0.0
0033 | `+_MIPS_ISA_MIPS3+` | 3.0.0
0034 | `+__MIPS_ISA3__+` | 3.0.0
0035 | `+_MIPS_ISA_MIPS4+` | 4.0.0
0036 | `+__MIPS_ISA4__+` | 4.0.0
0037 |===
0038 */ // end::reference[]
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)