blackfin.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. Copyright Rene Rivera 2013-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_BLACKFIN_H
  8. #define BOOST_PREDEF_ARCHITECTURE_BLACKFIN_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_ARCH_BLACKFIN`
  13. Blackfin Processors from Analog Devices.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__bfin__+` | {predef_detection}
  18. | `+__BFIN__+` | {predef_detection}
  19. | `bfin` | {predef_detection}
  20. | `BFIN` | {predef_detection}
  21. |===
  22. */ // end::reference[]
  23. #define BOOST_ARCH_BLACKFIN BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if defined(__bfin__) || defined(__BFIN__) || \
  25. defined(bfin) || defined(BFIN)
  26. # undef BOOST_ARCH_BLACKFIN
  27. # define BOOST_ARCH_BLACKFIN BOOST_VERSION_NUMBER_AVAILABLE
  28. #endif
  29. #if BOOST_ARCH_BLACKFIN
  30. # define BOOST_ARCH_BLACKFIN_AVAILABLE
  31. #endif
  32. #if BOOST_ARCH_BLACKFIN
  33. # undef BOOST_ARCH_WORD_BITS_16
  34. # define BOOST_ARCH_WORD_BITS_16 BOOST_VERSION_NUMBER_AVAILABLE
  35. #endif
  36. #define BOOST_ARCH_BLACKFIN_NAME "Blackfin"
  37. #endif
  38. #include <boost/predef/detail/test.h>
  39. BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_BLACKFIN,BOOST_ARCH_BLACKFIN_NAME)