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_PPC_H
0009 #define BOOST_PREDEF_ARCHITECTURE_PPC_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 /* tag::reference[]
0015 = `BOOST_ARCH_PPC`
0016 
0017 http://en.wikipedia.org/wiki/PowerPC[PowerPC] architecture.
0018 
0019 [options="header"]
0020 |===
0021 | {predef_symbol} | {predef_version}
0022 
0023 | `+__powerpc+` | {predef_detection}
0024 | `+__powerpc__+` | {predef_detection}
0025 | `+__powerpc64__+` | {predef_detection}
0026 | `+__POWERPC__+` | {predef_detection}
0027 | `+__ppc__+` | {predef_detection}
0028 | `+__ppc64__+` | {predef_detection}
0029 | `+__PPC__+` | {predef_detection}
0030 | `+__PPC64__+` | {predef_detection}
0031 | `+_M_PPC+` | {predef_detection}
0032 | `+_ARCH_PPC+` | {predef_detection}
0033 | `+_ARCH_PPC64+` | {predef_detection}
0034 | `+__PPCGECKO__+` | {predef_detection}
0035 | `+__PPCBROADWAY__+` | {predef_detection}
0036 | `+_XENON+` | {predef_detection}
0037 | `+__ppc+` | {predef_detection}
0038 
0039 | `+__ppc601__+` | 6.1.0
0040 | `+_ARCH_601+` | 6.1.0
0041 | `+__ppc603__+` | 6.3.0
0042 | `+_ARCH_603+` | 6.3.0
0043 | `+__ppc604__+` | 6.4.0
0044 | `+__ppc604__+` | 6.4.0
0045 |===
0046 */ // end::reference[]
0047 
0048 #define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE
0049 
0050 #if defined(__powerpc) || defined(__powerpc__) || defined(__powerpc64__) || \
0051     defined(__POWERPC__) || defined(__ppc__) || defined(__ppc64__) || \
0052     defined(__PPC__) || defined(__PPC64__) || \
0053     defined(_M_PPC) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \
0054     defined(__PPCGECKO__) || defined(__PPCBROADWAY__) || \
0055     defined(_XENON) || \
0056     defined(__ppc)
0057 #   undef BOOST_ARCH_PPC
0058 #   if !defined (BOOST_ARCH_PPC) && (defined(__ppc601__) || defined(_ARCH_601))
0059 #       define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,1,0)
0060 #   endif
0061 #   if !defined (BOOST_ARCH_PPC) && (defined(__ppc603__) || defined(_ARCH_603))
0062 #       define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,3,0)
0063 #   endif
0064 #   if !defined (BOOST_ARCH_PPC) && (defined(__ppc604__) || defined(__ppc604__))
0065 #       define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,4,0)
0066 #   endif
0067 #   if !defined (BOOST_ARCH_PPC)
0068 #       define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_AVAILABLE
0069 #   endif
0070 #endif
0071 
0072 #if BOOST_ARCH_PPC
0073 #   define BOOST_ARCH_PPC_AVAILABLE
0074 #endif
0075 
0076 #define BOOST_ARCH_PPC_NAME "PowerPC"
0077 
0078 
0079 /* tag::reference[]
0080 = `BOOST_ARCH_PPC_64`
0081 
0082 http://en.wikipedia.org/wiki/PowerPC[PowerPC] 64 bit architecture.
0083 
0084 [options="header"]
0085 |===
0086 | {predef_symbol} | {predef_version}
0087 
0088 | `+__powerpc64__+` | {predef_detection}
0089 | `+__ppc64__+` | {predef_detection}
0090 | `+__PPC64__+` | {predef_detection}
0091 | `+_ARCH_PPC64+` | {predef_detection}
0092 |===
0093 */ // end::reference[]
0094 
0095 #define BOOST_ARCH_PPC_64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
0096 
0097 #if defined(__powerpc64__) || defined(__ppc64__) || defined(__PPC64__) || \
0098     defined(_ARCH_PPC64)
0099 #   undef BOOST_ARCH_PPC_64
0100 #   define BOOST_ARCH_PPC_64 BOOST_VERSION_NUMBER_AVAILABLE
0101 #endif
0102 
0103 #if BOOST_ARCH_PPC_64
0104 #   define BOOST_ARCH_PPC_64_AVAILABLE
0105 #endif
0106 
0107 #define BOOST_ARCH_PPC_64_NAME "PowerPC64"
0108 
0109 
0110 #if BOOST_ARCH_PPC_64
0111 #   undef BOOST_ARCH_WORD_BITS_64
0112 #   define BOOST_ARCH_WORD_BITS_64 BOOST_VERSION_NUMBER_AVAILABLE
0113 #else
0114 #   undef BOOST_ARCH_WORD_BITS_32
0115 #   define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
0116 #endif
0117 
0118 #endif
0119 
0120 #include <boost/predef/detail/test.h>
0121 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PPC,BOOST_ARCH_PPC_NAME)
0122 
0123 #include <boost/predef/detail/test.h>
0124 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PPC_64,BOOST_ARCH_PPC_64_NAME)