Sha256: c7b5386420611634a0e8e6862c4945704d62efab5bb7637b49d6199317328d44

Contents?: true

Size: 1.92 KB

Versions: 29

Compression:

Stored size: 1.92 KB

Contents

/*
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or copy at
 * http://www.boost.org/LICENSE_1_0.txt)
 *
 * Copyright (c) 2011 Helge Bahmann
 * Copyright (c) 2013 Tim Blechmann
 * Copyright (c) 2014 Andrey Semashev
 */
/*!
 * \file   atomic/detail/caps_gcc_sync.hpp
 *
 * This header defines feature capabilities macros
 */

#ifndef BOOST_ATOMIC_DETAIL_CAPS_GCC_SYNC_HPP_INCLUDED_
#define BOOST_ATOMIC_DETAIL_CAPS_GCC_SYNC_HPP_INCLUDED_

#include <boost/atomic/detail/config.hpp>

#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif

#if defined(__i386__) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)
#define BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG8B 1
#endif

#if defined(__x86_64__) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
#define BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG16B 1
#endif

#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
#define BOOST_ATOMIC_INT8_LOCK_FREE 2
#endif
#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
#define BOOST_ATOMIC_INT16_LOCK_FREE 2
#endif
#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
#define BOOST_ATOMIC_INT32_LOCK_FREE 2
#endif
#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)\
    || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
#define BOOST_ATOMIC_INT64_LOCK_FREE 2
#endif
#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
#define BOOST_ATOMIC_INT128_LOCK_FREE 2
#endif

#define BOOST_ATOMIC_THREAD_FENCE 2
#define BOOST_ATOMIC_SIGNAL_FENCE 2

#endif // BOOST_ATOMIC_DETAIL_CAPS_GCC_SYNC_HPP_INCLUDED_

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.12 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.11 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.10 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.9 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.8 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.7 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.6 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.5 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.4 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.3 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.2 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp
passenger-5.1.1 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_gcc_sync.hpp