platform.hpp
Go to the documentation of this file.
00001 //  Copyright (c) 2009 Helge Bahmann
00002 //
00003 //  Distributed under the Boost Software License, Version 1.0.
00004 //  See accompanying file LICENSE_1_0.txt or copy at
00005 //  http://www.boost.org/LICENSE_1_0.txt)
00006 
00007 // Platform selection file
00008 
00009 #include <boost/config.hpp>
00010 
00011 #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
00012 
00013         #include <boost/atomic/detail/gcc-x86.hpp>
00014 
00015 #elif defined(__GNUC__) && defined(__alpha__)
00016 
00017         #include <boost/atomic/detail/gcc-alpha.hpp>
00018 
00019 #elif defined(__GNUC__) && (defined(__POWERPC__) || defined(__PPC__))
00020 
00021         #include <boost/atomic/detail/gcc-ppc.hpp>
00022 
00023 // This list of ARM architecture versions comes from Apple's arm/arch.h header.
00024 // I don't know how complete it is.
00025 #elif defined(__GNUC__) && (defined(__ARM_ARCH_6__)  || defined(__ARM_ARCH_6J__) \
00026                          || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
00027                          || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_7A__))
00028 
00029         #include <boost/atomic/detail/gcc-armv6+.hpp>
00030 
00031 #elif defined(__linux__) && defined(__arm__)
00032 
00033         #include <boost/atomic/detail/linux-arm.hpp>
00034 
00035 #elif defined(BOOST_USE_WINDOWS_H) || defined(_WIN32_CE) || defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
00036 
00037         #include <boost/atomic/detail/interlocked.hpp>
00038 
00039 #elif defined(__GNUC__)
00040 
00041         #include <boost/atomic/detail/gcc-cas.hpp>
00042 
00043 #endif


rosatomic
Author(s): Josh Faust
autogenerated on Mon Oct 6 2014 06:54:49