Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:43

0001 #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_GCC_INTRINSICS_HPP_INCLUDED
0002 #define BOOST_SMART_PTR_DETAIL_SP_HAS_GCC_INTRINSICS_HPP_INCLUDED
0003 
0004 // MS compatible compilers support #pragma once
0005 
0006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
0007 # pragma once
0008 #endif
0009 
0010 
0011 // boost/smart_ptr/detail/sp_has_gcc_intrinsics.hpp
0012 //
0013 // Copyright 2020 Peter Dimov
0014 // Distributed under the Boost Software License, Version 1.0.
0015 // https://www.boost.org/LICENSE_1_0.txt
0016 //
0017 // Defines the BOOST_SP_HAS_GCC_INTRINSICS macro if the __atomic_*
0018 // intrinsics are available.
0019 
0020 
0021 #if defined( __ATOMIC_RELAXED ) && defined( __ATOMIC_ACQUIRE ) && defined( __ATOMIC_RELEASE ) && defined( __ATOMIC_ACQ_REL )
0022 
0023 # define BOOST_SP_HAS_GCC_INTRINSICS
0024 
0025 #endif
0026 
0027 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_GCC_INTRINSICS_HPP_INCLUDED