]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
8 | #ifndef BOOST_PREDEF_ARCHITECTURE_BLACKFIN_H | |
9 | #define BOOST_PREDEF_ARCHITECTURE_BLACKFIN_H | |
10 | ||
11 | #include <boost/predef/version_number.h> | |
12 | #include <boost/predef/make.h> | |
13 | ||
f67539c2 TL |
14 | /* tag::reference[] |
15 | = `BOOST_ARCH_BLACKFIN` | |
7c673cae FG |
16 | |
17 | Blackfin Processors from Analog Devices. | |
18 | ||
f67539c2 TL |
19 | [options="header"] |
20 | |=== | |
21 | | {predef_symbol} | {predef_version} | |
7c673cae | 22 | |
f67539c2 TL |
23 | | `+__bfin__+` | {predef_detection} |
24 | | `+__BFIN__+` | {predef_detection} | |
25 | | `bfin` | {predef_detection} | |
26 | | `BFIN` | {predef_detection} | |
27 | |=== | |
28 | */ // end::reference[] | |
7c673cae FG |
29 | |
30 | #define BOOST_ARCH_BLACKFIN BOOST_VERSION_NUMBER_NOT_AVAILABLE | |
31 | ||
32 | #if defined(__bfin__) || defined(__BFIN__) || \ | |
33 | defined(bfin) || defined(BFIN) | |
34 | # undef BOOST_ARCH_BLACKFIN | |
35 | # define BOOST_ARCH_BLACKFIN BOOST_VERSION_NUMBER_AVAILABLE | |
36 | #endif | |
37 | ||
38 | #if BOOST_ARCH_BLACKFIN | |
39 | # define BOOST_ARCH_BLACKFIN_AVAILABLE | |
40 | #endif | |
41 | ||
42 | #define BOOST_ARCH_BLACKFIN_NAME "Blackfin" | |
43 | ||
44 | #endif | |
45 | ||
46 | #include <boost/predef/detail/test.h> | |
47 | BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_BLACKFIN,BOOST_ARCH_BLACKFIN_NAME) |