1 | /* |
2 | Copyright Rene Rivera 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 | |
8 | #ifndef BOOST_PREDEF_ARCHITECTURE_ALPHA_H |
9 | #define BOOST_PREDEF_ARCHITECTURE_ALPHA_H |
10 | |
11 | #include <boost/predef/version_number.h> |
12 | #include <boost/predef/make.h> |
13 | |
14 | /*` |
15 | [heading `BOOST_ARCH_ALPHA`] |
16 | |
17 | [@http://en.wikipedia.org/wiki/DEC_Alpha DEC Alpha] architecture. |
18 | |
19 | [table |
20 | [[__predef_symbol__] [__predef_version__]] |
21 | [[`__alpha__`] [__predef_detection__]] |
22 | [[`__alpha`] [__predef_detection__]] |
23 | [[`_M_ALPHA`] [__predef_detection__]] |
24 | |
25 | [[`__alpha_ev4__`] [4.0.0]] |
26 | [[`__alpha_ev5__`] [5.0.0]] |
27 | [[`__alpha_ev6__`] [6.0.0]] |
28 | ] |
29 | */ |
30 | |
31 | #define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER_NOT_AVAILABLE |
32 | |
33 | #if defined(__alpha__) || defined(__alpha) || \ |
34 | defined(_M_ALPHA) |
35 | # undef BOOST_ARCH_ALPHA |
36 | # if !defined(BOOST_ARCH_ALPHA) && defined(__alpha_ev4__) |
37 | # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(4,0,0) |
38 | # endif |
39 | # if !defined(BOOST_ARCH_ALPHA) && defined(__alpha_ev5__) |
40 | # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(5,0,0) |
41 | # endif |
42 | # if !defined(BOOST_ARCH_ALPHA) && defined(__alpha_ev6__) |
43 | # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER(6,0,0) |
44 | # endif |
45 | # if !defined(BOOST_ARCH_ALPHA) |
46 | # define BOOST_ARCH_ALPHA BOOST_VERSION_NUMBER_AVAILABLE |
47 | # endif |
48 | #endif |
49 | |
50 | #if BOOST_ARCH_ALPHA |
51 | # define BOOST_ARCH_ALPHA_AVAILABLE |
52 | #endif |
53 | |
54 | #define BOOST_ARCH_ALPHA_NAME "DEC Alpha" |
55 | |
56 | #include <boost/predef/detail/test.h> |
57 | BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_ALPHA,BOOST_ARCH_ALPHA_NAME) |
58 | |
59 | |
60 | #endif |
61 | |