comparison DEPENDENCIES/generic/include/boost/predef/architecture/arm.h @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
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
8 #ifndef BOOST_PREDEF_ARCHITECTURE_ARM_H
9 #define BOOST_PREDEF_ARCHITECTURE_ARM_H
10
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
13
14 /*`
15 [heading `BOOST_ARCH_ARM`]
16
17 [@http://en.wikipedia.org/wiki/ARM_architecture ARM] architecture.
18
19 [table
20 [[__predef_symbol__] [__predef_version__]]
21
22 [[`__arm__`] [__predef_detection__]]
23 [[`__thumb__`] [__predef_detection__]]
24 [[`__TARGET_ARCH_ARM`] [__predef_detection__]]
25 [[`__TARGET_ARCH_THUMB`] [__predef_detection__]]
26
27 [[`__TARGET_ARCH_ARM`] [V.0.0]]
28 [[`__TARGET_ARCH_THUMB`] [V.0.0]]
29 ]
30 */
31
32 #define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_NOT_AVAILABLE
33
34 #if defined(__arm__) || defined(__thumb__) || \
35 defined(__TARGET_ARCH_ARM) || defined(__TARGET_ARCH_THUMB)
36 # undef BOOST_ARCH_ARM
37 # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_ARM)
38 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_ARM,0,0)
39 # endif
40 # if !defined(BOOST_ARCH_ARM) && defined(__TARGET_ARCH_THUMB)
41 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER(__TARGET_ARCH_THUMB,0,0)
42 # endif
43 # if !defined(BOOST_ARCH_ARM)
44 # define BOOST_ARCH_ARM BOOST_VERSION_NUMBER_AVAILABLE
45 # endif
46 #endif
47
48 #if BOOST_ARCH_ARM
49 # define BOOST_ARCH_ARM_AVAILABLE
50 #endif
51
52 #define BOOST_ARCH_ARM_NAME "ARM"
53
54 #include <boost/predef/detail/test.h>
55 BOOST_PREDEF_DECLARE_TEST(BOOST_ARCH_ARM,BOOST_ARCH_ARM_NAME)
56
57
58 #endif