Sha256: 0a2980d0db52fa6d4e4d1ec7b00a2d520983f953a717eadbdfe982775e752bc7

Contents?: true

Size: 1.45 KB

Versions: 12

Compression:

Stored size: 1.45 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) 2017 Andrey Semashev
 */
/*!
 * \file   atomic/detail/hwcaps_gcc_x86.hpp
 *
 * This header defines hardware capabilities macros for x86
 */

#ifndef BOOST_ATOMIC_DETAIL_HWCAPS_GCC_X86_HPP_INCLUDED_
#define BOOST_ATOMIC_DETAIL_HWCAPS_GCC_X86_HPP_INCLUDED_

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

#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif

#if defined(__GNUC__)

#if defined(__i386__) &&\
    (\
        defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) ||\
        defined(__i586__) || defined(__i686__) || defined(__SSE__)\
    )
#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(__x86_64__) || defined(__SSE2__)
// Use mfence only if SSE2 is available
#define BOOST_ATOMIC_DETAIL_X86_HAS_MFENCE 1
#endif

#else // defined(__GNUC__)

#if defined(__i386__) && !defined(BOOST_ATOMIC_NO_CMPXCHG8B)
#define BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG8B 1
#endif

#if defined(__x86_64__) && !defined(BOOST_ATOMIC_NO_CMPXCHG16B)
#define BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG16B 1
#endif

#if !defined(BOOST_ATOMIC_NO_MFENCE)
#define BOOST_ATOMIC_DETAIL_X86_HAS_MFENCE 1
#endif

#endif // defined(__GNUC__)

#endif // BOOST_ATOMIC_DETAIL_HWCAPS_GCC_X86_HPP_INCLUDED_

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/atomic/detail/hwcaps_gcc_x86.hpp