alpha.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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_ALPHA_H
  8. #define BOOST_PREDEF_ARCHITECTURE_ALPHA_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_ARCH_ALPHA`
  13. http://en.wikipedia.org/wiki/DEC_Alpha[DEC Alpha] architecture.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__alpha__+` | {predef_detection}
  18. | `+__alpha+` | {predef_detection}
  19. | `+_M_ALPHA+` | {predef_detection}
  20. | `+__alpha_ev4__+` | 4.0.0
  21. | `+__alpha_ev5__+` | 5.0.0
  22. | `+__alpha_ev6__+` | 6.0.0
  23. |===
  24. */ // end::reference[]
  25. #define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER_NOT_AVAILABLE
  26. #if defined(__alpha__) || defined(__alpha) || \
  27. defined(_M_ALPHA)
  28. # undef BOOST_ARCH_ALPHA
  29. # if !defined(BOOST_ARCH_ALPHA) && defined(__alpha_ev4__)
  30. # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(4,0,0)
  31. # endif
  32. # if !defined(BOOST_ARCH_ALPHA) && defined(__alpha_ev5__)
  33. # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(5,0,0)
  34. # endif
  35. # if !defined(BOOST_ARCH_ALPHA) && defined(__alpha_ev6__)
  36. # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(6,0,0)
  37. # endif
  38. # if !defined(BOOST_ARCH_ALPHA)
  39. # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER_AVAILABLE
  40. # endif
  41. #endif
  42. #if BOOST_ARCH_ALPHA
  43. # define BOOST_ARCH_ALPHA_AVAILABLE
  44. #endif
  45. #if BOOST_ARCH_ALPHA
  46. # undef BOOST_ARCH_WORD_BITS_64
  47. # define BOOST_ARCH_WORD_BITS_64 BOOST_VERSION_NUMBER_AVAILABLE
  48. #endif
  49. #define BOOST_ARCH_ALPHA_NAME "DEC Alpha"
  50. #endif
  51. #include <boost/predef/detail/test.h>
  52. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_ALPHA,BOOST_ARCH_ALPHA_NAME)