parisc.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /*`
  12. [heading `BOOST_ARCH_PARISC`]
  13. [@http://en.wikipedia.org/wiki/PA-RISC_family HP/PA RISC] architecture.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`__hppa__`] [__predef_detection__]]
  17. [[`__hppa`] [__predef_detection__]]
  18. [[`__HPPA__`] [__predef_detection__]]
  19. [[`_PA_RISC1_0`] [1.0.0]]
  20. [[`_PA_RISC1_1`] [1.1.0]]
  21. [[`__HPPA11__`] [1.1.0]]
  22. [[`__PA7100__`] [1.1.0]]
  23. [[`_PA_RISC2_0`] [2.0.0]]
  24. [[`__RISC2_0__`] [2.0.0]]
  25. [[`__HPPA20__`] [2.0.0]]
  26. [[`__PA8000__`] [2.0.0]]
  27. ]
  28. */
  29. #define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_NOT_AVAILABLE
  30. #if defined(__hppa__) || defined(__hppa) || defined(__HPPA__)
  31. # undef BOOST_ARCH_PARISC
  32. # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_0))
  33. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,0,0)
  34. # endif
  35. # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC1_1) || defined(__HPPA11__) || defined(__PA7100__))
  36. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(1,1,0)
  37. # endif
  38. # if !defined(BOOST_ARCH_PARISC) && (defined(_PA_RISC2_0) || defined(__RISC2_0__) || defined(__HPPA20__) || defined(__PA8000__))
  39. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER(2,0,0)
  40. # endif
  41. # if !defined(BOOST_ARCH_PARISC)
  42. # define BOOST_ARCH_PARISC BOOST_VERSION_NUMBER_AVAILABLE
  43. # endif
  44. #endif
  45. #if BOOST_ARCH_PARISC
  46. # define BOOST_ARCH_PARISC_AVAILABLE
  47. #endif
  48. #define BOOST_ARCH_PARISC_NAME "HP/PA RISC"
  49. #endif
  50. #include <boost/predef/detail/test.h>
  51. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_PARISC,BOOST_ARCH_PARISC_NAME)