| 1 | /* |
| 2 | Copyright Rene Rivera 2008-2015 |
| 3 | Distributed under the Boost Software License, Version 1.0. |
| 4 | (See accompanying file LICENSE_1_0.txt or copy at |
| 5 | http://www.boost.org/LICENSE_1_0.txt) |
| 6 | */ |
| 7 | |
| 8 | #ifndef BOOST_PREDEF_ARCHITECTURE_PARISC_H |
| 9 | #define BOOST_PREDEF_ARCHITECTURE_PARISC_H |
| 10 | |
| 11 | #include <boost/predef/version_number.h> |
| 12 | #include <boost/predef/make.h> |
| 13 | |
| 14 | /* tag::reference[] |
| 15 | = `BOOST_ARCH_PARISC` |
| 16 | |
| 17 | http://en.wikipedia.org/wiki/PA-RISC_family[HP/PA RISC] architecture. |
| 18 | |
| 19 | [options="header"] |
| 20 | |=== |
| 21 | | {predef_symbol} | {predef_version} |
| 22 | |
| 23 | | `+__hppa__+` | {predef_detection} |
| 24 | | `+__hppa+` | {predef_detection} |
| 25 | | `+__HPPA__+` | {predef_detection} |
| 26 | |
| 27 | | `+_PA_RISC1_0+` | 1.0.0 |
| 28 | | `+_PA_RISC1_1+` | 1.1.0 |
| 29 | | `+__HPPA11__+` | 1.1.0 |
| 30 | | `+__PA7100__+` | 1.1.0 |
| 31 | | `+_PA_RISC2_0+` | 2.0.0 |
| 32 | | `+__RISC2_0__+` | 2.0.0 |
| 33 | | `+__HPPA20__+` | 2.0.0 |
| 34 | | `+__PA8000__+` | 2.0.0 |
| 35 | |=== |
| 36 | */ // end::reference[] |
| 37 | |
| 38 | #define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 39 | |
| 40 | #if defined(__hppa__) || defined(__hppa) || defined(__HPPA__) |
| 41 | # undef BOOST_ARCH_PARISC |
| 42 | # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_0)) |
| 43 | # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,0,0) |
| 44 | # endif |
| 45 | # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__)) |
| 46 | # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,1,0) |
| 47 | # endif |
| 48 | # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__)) |
| 49 | # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(2,0,0) |
| 50 | # endif |
| 51 | # if !defined(BOOST_ARCH_PARISC) |
| 52 | # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_AVAILABLE |
| 53 | # endif |
| 54 | #endif |
| 55 | |
| 56 | #if BOOST_ARCH_PARISC |
| 57 | # define BOOST_ARCH_PARISC_AVAILABLE |
| 58 | #endif |
| 59 | |
| 60 | #define BOOST_ARCH_PARISC_NAME "HP/PA RISC" |
| 61 | |
| 62 | #endif |
| 63 | |
| 64 | #include <boost/predef/detail/test.h> |
| 65 | BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PARISC,BOOST_ARCH_PARISC_NAME) |
| 66 | |