arm.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. Copyright Redshift Software, Inc. 2008-2013
  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_ARM_H
  8. #define BOOST_PREDEF_ARCHITECTURE_ARM_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_ARCH_ARM`]
  13. [@http://en.wikipedia.org/wiki/ARM_architecture ARM] architecture.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`__arm__`] [__predef_detection__]]
  17. [[`__thumb__`] [__predef_detection__]]
  18. [[`__TARGET_ARCH_ARM`] [__predef_detection__]]
  19. [[`__TARGET_ARCH_THUMB`] [__predef_detection__]]
  20. [[`__TARGET_ARCH_ARM`] [V.0.0]]
  21. [[`__TARGET_ARCH_THUMB`] [V.0.0]]
  22. ]
  23. */
  24. #define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if defined(__arm__) || defined(__thumb__) || \
  26. defined(__TARGET_ARCH_ARM) || defined(__TARGET_ARCH_THUMB)
  27. # undef BOOST_ARCH_ARM
  28. # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_ARM)
  29. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_ARM,0,0)
  30. # endif
  31. # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_THUMB)
  32. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0)
  33. # endif
  34. # if !defined(BOOST_ARCH_ARM)
  35. # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_AVAILABLE
  36. # endif
  37. #endif
  38. #if BOOST_ARCH_ARM
  39. # define BOOST_ARCH_ARM_AVAILABLE
  40. #endif
  41. #define BOOST_ARCH_ARM_NAME "ARM"
  42. #include <boost/predef/detail/test.h>
  43. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_ARM,BOOST_ARCH_ARM_NAME)
  44. #endif