]> git.donarmstrong.com Git - rsem.git/blob - boost/smart_ptr/detail/sp_has_sync.hpp
Updated boost to v1.55.0
[rsem.git] / boost / smart_ptr / detail / sp_has_sync.hpp
1 #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED
2 #define BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED
3
4 // MS compatible compilers support #pragma once
5
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
7 # pragma once
8 #endif
9
10 //
11 //  boost/smart_ptr/detail/sp_has_sync.hpp
12 //
13 //  Copyright (c) 2008, 2009 Peter Dimov
14 //
15 //  Distributed under the Boost Software License, Version 1.0.
16 //  See accompanying file LICENSE_1_0.txt or copy at
17 //  http://www.boost.org/LICENSE_1_0.txt)
18 //
19 //  Defines the BOOST_SP_HAS_SYNC macro if the __sync_* intrinsics
20 //  are available.
21 //
22
23 #ifndef BOOST_SP_NO_SYNC
24
25 #if defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 )
26
27 # define BOOST_SP_HAS_SYNC
28
29 #elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 )
30
31 # define BOOST_SP_HAS_SYNC
32
33 #elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
34
35 #define BOOST_SP_HAS_SYNC
36
37 #if defined( __arm__ )  || defined( __armel__ )
38 #undef BOOST_SP_HAS_SYNC
39 #endif
40
41 #if defined( __hppa ) || defined( __hppa__ )
42 #undef BOOST_SP_HAS_SYNC
43 #endif
44
45 #if defined( __m68k__ )
46 #undef BOOST_SP_HAS_SYNC
47 #endif
48
49 #if defined( __sh__ )
50 #undef BOOST_SP_HAS_SYNC
51 #endif
52
53 #if defined( __sparc__ )
54 #undef BOOST_SP_HAS_SYNC
55 #endif
56
57 #if defined( __INTEL_COMPILER ) && !defined( __ia64__ ) && ( __INTEL_COMPILER < 1110 )
58 #undef BOOST_SP_HAS_SYNC
59 #endif
60
61 #if defined(__PATHSCALE__) && ((__PATHCC__ == 4) && (__PATHCC_MINOR__ < 9)) 
62 #undef BOOST_SP_HAS_SYNC
63 #endif
64
65 #endif
66
67 #endif // #ifndef BOOST_SP_NO_SYNC
68
69 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED