Sha256: dfbc4f15bf32eeed7905d71986ae70854cc9524803cc65702dbb6c421c80002d

Contents?: true

Size: 1.66 KB

Versions: 17

Compression:

Stored size: 1.66 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) 2009 Helge Bahmann
 * Copyright (c) 2013 Tim Blechmann
 * Copyright (c) 2012 - 2014 Andrey Semashev
 */
/*!
 * \file   atomic/detail/caps_arch_msvc_x86.hpp
 *
 * This header defines feature capabilities macros
 */

#ifndef BOOST_ATOMIC_DETAIL_CAPS_ARCH_MSVC_X86_HPP_INCLUDED_
#define BOOST_ATOMIC_DETAIL_CAPS_ARCH_MSVC_X86_HPP_INCLUDED_

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

#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif

#if defined(_M_IX86) && _M_IX86 >= 500
#define BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG8B 1
#endif

#if defined(_M_AMD64) && !defined(BOOST_ATOMIC_NO_CMPXCHG16B)
#if defined(__clang__)
#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
#define BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG16B 1
#endif
#elif _MSC_VER >= 1500
#define BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG16B 1
#endif
#endif

#if defined(_MSC_VER) && (defined(_M_AMD64) || (defined(_M_IX86) && defined(_M_IX86_FP) && _M_IX86_FP >= 2))
// Use mfence only if SSE2 is available
#define BOOST_ATOMIC_DETAIL_X86_HAS_MFENCE 1
#endif

#define BOOST_ATOMIC_INT8_LOCK_FREE 2
#define BOOST_ATOMIC_INT16_LOCK_FREE 2
#define BOOST_ATOMIC_INT32_LOCK_FREE 2

#if defined(_M_AMD64) || defined(BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG8B)
#define BOOST_ATOMIC_INT64_LOCK_FREE 2
#endif

#if defined(BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG16B)
#define BOOST_ATOMIC_INT128_LOCK_FREE 2
#endif

#define BOOST_ATOMIC_POINTER_LOCK_FREE 2

#define BOOST_ATOMIC_THREAD_FENCE 2
#define BOOST_ATOMIC_SIGNAL_FENCE 2

#endif // BOOST_ATOMIC_DETAIL_CAPS_ARCH_MSVC_X86_HPP_INCLUDED_

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
passenger-6.0.26 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.25 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.24 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.23 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp
passenger-6.0.8 src/cxx_supportlib/vendor-modified/boost/atomic/detail/caps_arch_msvc_x86.hpp