arm.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /*
  2. Copyright Rene Rivera 2008-2019
  3. Copyright Franz Detro 2014
  4. Copyright (c) Microsoft Corporation 2014
  5. Distributed under the Boost Software License, Version 1.0.
  6. (See accompanying file LICENSE_1_0.txt or copy at
  7. http://www.boost.org/LICENSE_1_0.txt)
  8. */
  9. #ifndef BOOST_PREDEF_ARCHITECTURE_ARM_H
  10. #define BOOST_PREDEF_ARCHITECTURE_ARM_H
  11. #include <boost/predef/version_number.h>
  12. #include <boost/predef/make.h>
  13. /*`
  14. [heading `BOOST_ARCH_ARM`]
  15. [@http://en.wikipedia.org/wiki/ARM_architecture ARM] architecture.
  16. [table
  17. [[__predef_symbol__] [__predef_version__]]
  18. [[`__ARM_ARCH`] [__predef_detection__]]
  19. [[`__TARGET_ARCH_ARM`] [__predef_detection__]]
  20. [[`__TARGET_ARCH_THUMB`] [__predef_detection__]]
  21. [[`_M_ARM`] [__predef_detection__]]
  22. [[`__arm__`] [__predef_detection__]]
  23. [[`__arm64`] [__predef_detection__]]
  24. [[`__thumb__`] [__predef_detection__]]
  25. [[`_M_ARM64`] [__predef_detection__]]
  26. [[`__aarch64__`] [__predef_detection__]]
  27. [[`__AARCH64EL__`] [__predef_detection__]]
  28. [[`__ARM_ARCH_7__`] [__predef_detection__]]
  29. [[`__ARM_ARCH_7A__`] [__predef_detection__]]
  30. [[`__ARM_ARCH_7R__`] [__predef_detection__]]
  31. [[`__ARM_ARCH_7M__`] [__predef_detection__]]
  32. [[`__ARM_ARCH_6K__`] [__predef_detection__]]
  33. [[`__ARM_ARCH_6Z__`] [__predef_detection__]]
  34. [[`__ARM_ARCH_6KZ__`] [__predef_detection__]]
  35. [[`__ARM_ARCH_6T2__`] [__predef_detection__]]
  36. [[`__ARM_ARCH_5TE__`] [__predef_detection__]]
  37. [[`__ARM_ARCH_5TEJ__`] [__predef_detection__]]
  38. [[`__ARM_ARCH_4T__`] [__predef_detection__]]
  39. [[`__ARM_ARCH_4__`] [__predef_detection__]]
  40. [[`__ARM_ARCH`] [V.0.0]]
  41. [[`__TARGET_ARCH_ARM`] [V.0.0]]
  42. [[`__TARGET_ARCH_THUMB`] [V.0.0]]
  43. [[`_M_ARM`] [V.0.0]]
  44. [[`__arm64`] [8.0.0]]
  45. [[`_M_ARM64`] [8.0.0]]
  46. [[`__aarch64__`] [8.0.0]]
  47. [[`__AARCH64EL__`] [8.0.0]]
  48. [[`__ARM_ARCH_7__`] [7.0.0]]
  49. [[`__ARM_ARCH_7A__`] [7.0.0]]
  50. [[`__ARM_ARCH_7R__`] [7.0.0]]
  51. [[`__ARM_ARCH_7M__`] [7.0.0]]
  52. [[`__ARM_ARCH_6K__`] [6.0.0]]
  53. [[`__ARM_ARCH_6Z__`] [6.0.0]]
  54. [[`__ARM_ARCH_6KZ__`] [6.0.0]]
  55. [[`__ARM_ARCH_6T2__`] [6.0.0]]
  56. [[`__ARM_ARCH_5TE__`] [5.0.0]]
  57. [[`__ARM_ARCH_5TEJ__`] [5.0.0]]
  58. [[`__ARM_ARCH_4T__`] [4.0.0]]
  59. [[`__ARM_ARCH_4__`] [4.0.0]]
  60. ]
  61. */
  62. #define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_NOT_AVAILABLE
  63. #if \
  64. defined(__ARM_ARCH) || defined(__TARGET_ARCH_ARM) || \
  65. defined(__TARGET_ARCH_THUMB) || defined(_M_ARM) || \
  66. defined(__arm__) || defined(__arm64) || defined(__thumb__) || \
  67. defined(_M_ARM64) || defined(__aarch64__) || defined(__AARCH64EL__) || \
  68. defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
  69. defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || \
  70. defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || \
  71. defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6T2__) || \
  72. defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__) || \
  73. defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_4__)
  74. # undef BOOST_ARCH_ARM
  75. # if !defined(BOOST_ARCH_ARM) && defined(__ARM_ARCH)
  76. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__ARM_ARCH,0,0)
  77. # endif
  78. # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_ARM)
  79. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_ARM,0,0)
  80. # endif
  81. # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_THUMB)
  82. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0)
  83. # endif
  84. # if !defined(BOOST_ARCH_ARM) && defined(_M_ARM)
  85. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(_M_ARM,0,0)
  86. # endif
  87. # if !defined(BOOST_ARCH_ARM) && ( \
  88. defined(__arm64) || defined(_M_ARM64) || defined(__aarch64__) || \
  89. defined(__AARCH64EL__) )
  90. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(8,0,0)
  91. # endif
  92. # if !defined(BOOST_ARCH_ARM) && ( \
  93. defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
  94. defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) )
  95. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(7,0,0)
  96. # endif
  97. # if !defined(BOOST_ARCH_ARM) && ( \
  98. defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || \
  99. defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6T2__) )
  100. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(6,0,0)
  101. # endif
  102. # if !defined(BOOST_ARCH_ARM) && ( \
  103. defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__) )
  104. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(5,0,0)
  105. # endif
  106. # if !defined(BOOST_ARCH_ARM) && ( \
  107. defined(__ARM_ARCH_4T__) || defined(__ARM_ARCH_4__) )
  108. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(4,0,0)
  109. # endif
  110. # if !defined(BOOST_ARCH_ARM)
  111. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_AVAILABLE
  112. # endif
  113. #endif
  114. #if BOOST_ARCH_ARM
  115. # define BOOST_ARCH_ARM_AVAILABLE
  116. #endif
  117. #define BOOST_ARCH_ARM_NAME "ARM"
  118. #endif
  119. #include <boost/predef/detail/test.h>
  120. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_ARM,BOOST_ARCH_ARM_NAME)