convex.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. Copyright Rene Rivera 2011-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_CONVEX_H
  8. #define BOOST_PREDEF_ARCHITECTURE_CONVEX_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_ARCH_CONVEX`]
  13. [@http://en.wikipedia.org/wiki/Convex_Computer Convex Computer] architecture.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`__convex__`] [__predef_detection__]]
  17. [[`__convex_c1__`] [1.0.0]]
  18. [[`__convex_c2__`] [2.0.0]]
  19. [[`__convex_c32__`] [3.2.0]]
  20. [[`__convex_c34__`] [3.4.0]]
  21. [[`__convex_c38__`] [3.8.0]]
  22. ]
  23. */
  24. #define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__convex__)
  26. # undef BOOST_ARCH_CONVEX
  27. # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c1__)
  28. # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(1,0,0)
  29. # endif
  30. # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c2__)
  31. # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(2,0,0)
  32. # endif
  33. # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c32__)
  34. # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,2,0)
  35. # endif
  36. # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c34__)
  37. # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,4,0)
  38. # endif
  39. # if !defined(BOOST_ARCH_CONVEX) && defined(__convex_c38__)
  40. # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER(3,8,0)
  41. # endif
  42. # if !defined(BOOST_ARCH_CONVEX)
  43. # define BOOST_ARCH_CONVEX BOOST_VERSION_NUMBER_AVAILABLE
  44. # endif
  45. #endif
  46. #if BOOST_ARCH_CONVEX
  47. # define BOOST_ARCH_CONVEX_AVAILABLE
  48. #endif
  49. #define BOOST_ARCH_CONVEX_NAME "Convex Computer"
  50. #endif
  51. #include <boost/predef/detail/test.h>
  52. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_CONVEX,BOOST_ARCH_CONVEX_NAME)