parisc.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. #ifndef BOOST_PREDEF_ARCHITECTURE_PARISC_H
  8. #define BOOST_PREDEF_ARCHITECTURE_PARISC_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_ARCH_PARISC`
  13. http://en.wikipedia.org/wiki/PA-RISC_family[HP/PA RISC] architecture.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__hppa__+` | {predef_detection}
  18. | `+__hppa+` | {predef_detection}
  19. | `+__HPPA__+` | {predef_detection}
  20. | `+_PA_RISC1_0+` | 1.0.0
  21. | `+_PA_RISC1_1+` | 1.1.0
  22. | `+__HPPA11__+` | 1.1.0
  23. | `+__PA7100__+` | 1.1.0
  24. | `+_PA_RISC2_0+` | 2.0.0
  25. | `+__RISC2_0__+` | 2.0.0
  26. | `+__HPPA20__+` | 2.0.0
  27. | `+__PA8000__+` | 2.0.0
  28. |===
  29. */ // end::reference[]
  30. #define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_NOT_AVAILABLE
  31. #if defined(__hppa__) || defined(__hppa) || defined(__HPPA__)
  32. # undef BOOST_ARCH_PARISC
  33. # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_0))
  34. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,0,0)
  35. # endif
  36. # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__))
  37. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,1,0)
  38. # endif
  39. # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__))
  40. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(2,0,0)
  41. # endif
  42. # if !defined(BOOST_ARCH_PARISC)
  43. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_AVAILABLE
  44. # endif
  45. #endif
  46. #if BOOST_ARCH_PARISC
  47. # define BOOST_ARCH_PARISC_AVAILABLE
  48. #endif
  49. #if BOOST_ARCH_PARISC
  50. # undef BOOST_ARCH_WORD_BITS_32
  51. # define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
  52. #endif
  53. #define BOOST_ARCH_PARISC_NAME "HP/PA RISC"
  54. #endif
  55. #include <boost/predef/detail/test.h>
  56. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PARISC,BOOST_ARCH_PARISC_NAME)