1/*
2Copyright Rene Rivera 2008-2015
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_ARCHITECTURE_PPC_H
9#define BOOST_PREDEF_ARCHITECTURE_PPC_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/* tag::reference[]
15= `BOOST_ARCH_PPC`
16
17http://en.wikipedia.org/wiki/PowerPC[PowerPC] architecture.
18
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
22
23| `+__powerpc+` | {predef_detection}
24| `+__powerpc__+` | {predef_detection}
25| `+__POWERPC__+` | {predef_detection}
26| `+__ppc__+` | {predef_detection}
27| `+_M_PPC+` | {predef_detection}
28| `+_ARCH_PPC+` | {predef_detection}
29| `+__PPCGECKO__+` | {predef_detection}
30| `+__PPCBROADWAY__+` | {predef_detection}
31| `+_XENON+` | {predef_detection}
32
33| `+__ppc601__+` | 6.1.0
34| `+_ARCH_601+` | 6.1.0
35| `+__ppc603__+` | 6.3.0
36| `+_ARCH_603+` | 6.3.0
37| `+__ppc604__+` | 6.4.0
38| `+__ppc604__+` | 6.4.0
39|===
40*/ // end::reference[]
41
42#define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE
43
44#if defined(__powerpc) || defined(__powerpc__) || \
45 defined(__POWERPC__) || defined(__ppc__) || \
46 defined(_M_PPC) || defined(_ARCH_PPC) || \
47 defined(__PPCGECKO__) || defined(__PPCBROADWAY__) || \
48 defined(_XENON)
49# undef BOOST_ARCH_PPC
50# if !defined (BOOST_ARCH_PPC) && (defined(__ppc601__) || defined(_ARCH_601))
51# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,1,0)
52# endif
53# if !defined (BOOST_ARCH_PPC) && (defined(__ppc603__) || defined(_ARCH_603))
54# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,3,0)
55# endif
56# if !defined (BOOST_ARCH_PPC) && (defined(__ppc604__) || defined(__ppc604__))
57# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER(6,4,0)
58# endif
59# if !defined (BOOST_ARCH_PPC)
60# define BOOST_ARCH_PPC BOOST_VERSION_NUMBER_AVAILABLE
61# endif
62#endif
63
64#if BOOST_ARCH_PPC
65# define BOOST_ARCH_PPC_AVAILABLE
66#endif
67
68#define BOOST_ARCH_PPC_NAME "PowerPC"
69
70#endif
71
72#include <boost/predef/detail/test.h>
73BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PPC,BOOST_ARCH_PPC_NAME)
74

source code of include/boost/predef/architecture/ppc.h