rs6k.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. /*`
  12. [heading `BOOST_ARCH_RS6000`]
  13. [@http://en.wikipedia.org/wiki/RS/6000 RS/6000] architecture.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`__THW_RS6000`] [__predef_detection__]]
  17. [[`_IBMR2`] [__predef_detection__]]
  18. [[`_POWER`] [__predef_detection__]]
  19. [[`_ARCH_PWR`] [__predef_detection__]]
  20. [[`_ARCH_PWR2`] [__predef_detection__]]
  21. ]
  22. */
  23. #define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if defined(__THW_RS6000) || defined(_IBMR2) || \
  25. defined(_POWER) || defined(_ARCH_PWR) || \
  26. defined(_ARCH_PWR2)
  27. # undef BOOST_ARCH_RS6000
  28. # define BOOST_ARCH_RS6000 BOOST_VERSION_NUMBER_AVAILABLE
  29. #endif
  30. #if BOOST_ARCH_RS6000
  31. # define BOOST_ARCH_RS6000_AVAILABLE
  32. #endif
  33. #define BOOST_ARCH_RS6000_NAME "RS/6000"
  34. #define BOOST_ARCH_PWR BOOST_ARCH_RS6000
  35. #if BOOST_ARCH_PWR
  36. # define BOOST_ARCH_PWR_AVAILABLE
  37. #endif
  38. #define BOOST_ARCH_PWR_NAME BOOST_ARCH_RS6000_NAME
  39. #endif
  40. #include <boost/predef/detail/test.h>
  41. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_RS6000,BOOST_ARCH_RS6000_NAME)