File indexing completed on 2025-01-30 09:33:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
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