rs6k.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_RS6K_H
  8. #define BOOST_PREDEF_ARCHITECTURE_RS6K_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_ARCH_RS6000`
  13. http://en.wikipedia.org/wiki/RS/6000[RS/6000] architecture.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__THW_RS6000+` | {predef_detection}
  18. | `+_IBMR2+` | {predef_detection}
  19. | `+_POWER+` | {predef_detection}
  20. | `+_ARCH_PWR+` | {predef_detection}
  21. | `+_ARCH_PWR2+` | {predef_detection}
  22. |===
  23. */ // end::reference[]
  24. #define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__THW_RS6000) || defined(_IBMR2) || \
  26. defined(_POWER) || defined(_ARCH_PWR) || \
  27. defined(_ARCH_PWR2)
  28. # undef BOOST_ARCH_RS6000
  29. # define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER_AVAILABLE
  30. #endif
  31. #if BOOST_ARCH_RS6000
  32. # define BOOST_ARCH_RS6000_AVAILABLE
  33. #endif
  34. #if BOOST_ARCH_RS6000
  35. # undef BOOST_ARCH_WORD_BITS_32
  36. # define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
  37. #endif
  38. #define BOOST_ARCH_RS6000_NAME "RS/6000"
  39. #define BOOST_ARCH_PWR BOOST_ARCH_RS6000
  40. #if BOOST_ARCH_PWR
  41. # define BOOST_ARCH_PWR_AVAILABLE
  42. #endif
  43. #if BOOST_ARCH_PWR
  44. # undef BOOST_ARCH_WORD_BITS_32
  45. # define BOOST_ARCH_WORD_BITS_32 BOOST_VERSION_NUMBER_AVAILABLE
  46. #endif
  47. #define BOOST_ARCH_PWR_NAME BOOST_ARCH_RS6000_NAME
  48. #endif
  49. #include <boost/predef/detail/test.h>
  50. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_RS6000,BOOST_ARCH_RS6000_NAME)