Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:43

0001 #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_INTRINSICS_HPP_INCLUDED
0002 #define BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_INTRINSICS_HPP_INCLUDED
0003 
0004 // MS compatible compilers support #pragma once
0005 
0006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
0007 # pragma once
0008 #endif
0009 
0010 //
0011 //  boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp
0012 //
0013 //  Copyright (c) 2008, 2009 Peter Dimov
0014 //
0015 //  Distributed under the Boost Software License, Version 1.0.
0016 //  See accompanying file LICENSE_1_0.txt or copy at
0017 //  http://www.boost.org/LICENSE_1_0.txt)
0018 //
0019 //  Defines the BOOST_SP_HAS_SYNC_INTRINSICS macro if the __sync_* intrinsics
0020 //  are available.
0021 //
0022 
0023 #if !defined( BOOST_SP_NO_SYNC_INTRINSICS ) && !defined( BOOST_SP_NO_SYNC )
0024 
0025 #if defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 ) && !defined( __c2__ )
0026 
0027 # define BOOST_SP_HAS_SYNC_INTRINSICS
0028 
0029 #elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 ) && !defined( __COMPILER_VER__ )
0030 
0031 # define BOOST_SP_HAS_SYNC_INTRINSICS
0032 
0033 #elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __c2__ )
0034 
0035 #define BOOST_SP_HAS_SYNC_INTRINSICS
0036 
0037 #if defined( __arm__ )  || defined( __armel__ )
0038 #undef BOOST_SP_HAS_SYNC_INTRINSICS
0039 #endif
0040 
0041 #if defined( __hppa ) || defined( __hppa__ )
0042 #undef BOOST_SP_HAS_SYNC_INTRINSICS
0043 #endif
0044 
0045 #if defined( __m68k__ )
0046 #undef BOOST_SP_HAS_SYNC_INTRINSICS
0047 #endif
0048 
0049 #if defined( __sh__ )
0050 #undef BOOST_SP_HAS_SYNC_INTRINSICS
0051 #endif
0052 
0053 #if defined( __sparc__ )
0054 #undef BOOST_SP_HAS_SYNC_INTRINSICS
0055 #endif
0056 
0057 #if defined( __INTEL_COMPILER ) && !defined( __ia64__ ) && ( __INTEL_COMPILER < 1110 )
0058 #undef BOOST_SP_HAS_SYNC_INTRINSICS
0059 #endif
0060 
0061 #if defined(__PATHSCALE__) && ((__PATHCC__ == 4) && (__PATHCC_MINOR__ < 9)) 
0062 #undef BOOST_SP_HAS_SYNC_INTRINSICS
0063 #endif
0064 
0065 #endif
0066 
0067 #endif // #if !defined( BOOST_SP_NO_SYNC_INTRINSICS ) && !defined( BOOST_SP_NO_SYNC )
0068 
0069 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_INTRINSICS_HPP_INCLUDED