comparison DEPENDENCIES/generic/include/boost/atomic/detail/platform.hpp @ 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 #ifndef BOOST_ATOMIC_DETAIL_PLATFORM_HPP
2 #define BOOST_ATOMIC_DETAIL_PLATFORM_HPP
3
4 // Copyright (c) 2009 Helge Bahmann
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9
10 // Platform selection file
11
12 #include <boost/atomic/detail/config.hpp>
13
14 #ifdef BOOST_HAS_PRAGMA_ONCE
15 #pragma once
16 #endif
17
18 // Intel compiler does not support __atomic* intrinsics properly, although defines them (tested with 13.0.1 and 13.1.1 on Linux)
19 #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 407) && !defined(BOOST_INTEL_CXX_VERSION))\
20 || (defined(BOOST_CLANG) && ((__clang_major__ * 100 + __clang_minor__) >= 302))
21
22 #include <boost/atomic/detail/gcc-atomic.hpp>
23
24 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
25
26 #include <boost/atomic/detail/gcc-x86.hpp>
27
28 #elif 0 && defined(__GNUC__) && defined(__alpha__) /* currently does not work correctly */
29
30 #include <boost/atomic/detail/base.hpp>
31 #include <boost/atomic/detail/gcc-alpha.hpp>
32
33 #elif defined(__GNUC__) && (defined(__POWERPC__) || defined(__PPC__))
34
35 #include <boost/atomic/detail/gcc-ppc.hpp>
36
37 // This list of ARM architecture versions comes from Apple's arm/arch.h header.
38 // I don't know how complete it is.
39 #elif defined(__GNUC__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
40 || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
41 || defined(__ARM_ARCH_6K__) \
42 || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
43 || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \
44 || defined(__ARM_ARCH_7EM__) || defined(__ARM_ARCH_7S__))
45
46 #include <boost/atomic/detail/gcc-armv6plus.hpp>
47
48 #elif defined(__linux__) && defined(__arm__)
49
50 #include <boost/atomic/detail/linux-arm.hpp>
51
52 #elif defined(__GNUC__) && defined(__sparc_v9__)
53
54 #include <boost/atomic/detail/gcc-sparcv9.hpp>
55
56 #elif defined(BOOST_WINDOWS) || defined(_WIN32_CE)
57
58 #include <boost/atomic/detail/windows.hpp>
59
60 #elif 0 && defined(__GNUC__) /* currently does not work correctly */
61
62 #include <boost/atomic/detail/base.hpp>
63 #include <boost/atomic/detail/gcc-cas.hpp>
64
65 #else
66
67 #include <boost/atomic/detail/base.hpp>
68
69 #endif
70
71 #endif