e2k.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright Konstantin Ivlev 2021
  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_E2K_H
  8. #define BOOST_PREDEF_ARCHITECTURE_E2K_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_ARCH_E2K`
  13. https://en.wikipedia.org/wiki/Elbrus_2000[E2K] architecture.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__e2k__+` | {predef_detection}
  18. | `+__e2k__+` | V.0.0
  19. |===
  20. */ // end::reference[]
  21. #define BOOST_ARCH_E2K BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(__e2k__)
  23. # undef BOOST_ARCH_E2K
  24. # if !defined(BOOST_ARCH_E2K) && defined(__iset__)
  25. # define BOOST_ARCH_E2K BOOST_VERSION_NUMBER(__iset__,0,0)
  26. # endif
  27. # if !defined(BOOST_ARCH_E2K)
  28. # define BOOST_ARCH_E2K BOOST_VERSION_NUMBER_AVAILABLE
  29. # endif
  30. #endif
  31. #if BOOST_ARCH_E2K
  32. # define BOOST_ARCH_E2K_AVAILABLE
  33. #endif
  34. #if BOOST_ARCH_E2K
  35. # define BOOST_ARCH_WORD_BITS_64 BOOST_VERSION_NUMBER_AVAILABLE
  36. #endif
  37. #define BOOST_ARCH_E2K_NAME "E2K"
  38. #endif
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_E2K,BOOST_ARCH_E2K_NAME)