Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:33:50

0001 /*
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * Copyright (c) 2011 Helge Bahmann
0007  * Copyright (c) 2013 Tim Blechmann
0008  * Copyright (c) 2014 Andrey Semashev
0009  */
0010 /*!
0011  * \file   atomic/detail/caps_gcc_sync.hpp
0012  *
0013  * This header defines feature capabilities macros
0014  */
0015 
0016 #ifndef BOOST_ATOMIC_DETAIL_CAPS_GCC_SYNC_HPP_INCLUDED_
0017 #define BOOST_ATOMIC_DETAIL_CAPS_GCC_SYNC_HPP_INCLUDED_
0018 
0019 #include <boost/atomic/detail/config.hpp>
0020 
0021 #ifdef BOOST_HAS_PRAGMA_ONCE
0022 #pragma once
0023 #endif
0024 
0025 #if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1)\
0026     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2)\
0027     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)\
0028     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
0029     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
0030 #define BOOST_ATOMIC_INT8_LOCK_FREE 2
0031 #endif
0032 #if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2)\
0033     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)\
0034     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
0035     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
0036 #define BOOST_ATOMIC_INT16_LOCK_FREE 2
0037 #endif
0038 #if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)\
0039     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
0040     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
0041 #define BOOST_ATOMIC_INT32_LOCK_FREE 2
0042 #endif
0043 #if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
0044     || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
0045 #define BOOST_ATOMIC_INT64_LOCK_FREE 2
0046 #endif
0047 #if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
0048 #define BOOST_ATOMIC_INT128_LOCK_FREE 2
0049 #endif
0050 
0051 #define BOOST_ATOMIC_THREAD_FENCE 2
0052 #define BOOST_ATOMIC_SIGNAL_FENCE 2
0053 
0054 #endif // BOOST_ATOMIC_DETAIL_CAPS_GCC_SYNC_HPP_INCLUDED_