Rename sp_has_sync.hpp to sp_has_sync_intrinsics.hpp

This commit is contained in:
Peter Dimov
2020-06-06 17:11:28 +03:00
parent d08bdc86e5
commit 108a86cdbd
4 changed files with 21 additions and 21 deletions

View File

@@ -44,7 +44,7 @@
// //
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/smart_ptr/detail/sp_has_sync.hpp> #include <boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp>
#if defined( BOOST_AC_DISABLE_THREADS ) #if defined( BOOST_AC_DISABLE_THREADS )
# include <boost/smart_ptr/detail/atomic_count_nt.hpp> # include <boost/smart_ptr/detail/atomic_count_nt.hpp>
@@ -79,7 +79,7 @@
#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) && !defined( __PATHSCALE__ ) #elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) && !defined( __PATHSCALE__ )
# include <boost/smart_ptr/detail/atomic_count_gcc_x86.hpp> # include <boost/smart_ptr/detail/atomic_count_gcc_x86.hpp>
#elif defined( BOOST_SP_HAS_SYNC ) #elif defined( BOOST_SP_HAS_SYNC_INTRINSICS )
# include <boost/smart_ptr/detail/atomic_count_sync.hpp> # include <boost/smart_ptr/detail/atomic_count_sync.hpp>
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)

View File

@@ -18,7 +18,7 @@
// //
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/smart_ptr/detail/sp_has_sync.hpp> #include <boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp>
#if !defined( __c2__ ) && defined( __clang__ ) && defined( __has_extension ) #if !defined( __c2__ ) && defined( __clang__ ) && defined( __has_extension )
# if __has_extension( __c_atomic__ ) # if __has_extension( __c_atomic__ )
@@ -71,7 +71,7 @@
#elif defined( __GNUC__ ) && ( defined( __mips__ ) || defined( _mips ) ) && !defined(__PATHSCALE__) && !defined( __mips16 ) #elif defined( __GNUC__ ) && ( defined( __mips__ ) || defined( _mips ) ) && !defined(__PATHSCALE__) && !defined( __mips16 )
# include <boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp> # include <boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp>
#elif defined( BOOST_SP_HAS_SYNC ) #elif defined( BOOST_SP_HAS_SYNC_INTRINSICS )
# include <boost/smart_ptr/detail/sp_counted_base_sync.hpp> # include <boost/smart_ptr/detail/sp_counted_base_sync.hpp>
#elif defined(__GNUC__) && ( defined( __sparcv9 ) || ( defined( __sparcv8 ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 402 ) ) ) #elif defined(__GNUC__) && ( defined( __sparcv9 ) || ( defined( __sparcv8 ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 402 ) ) )

View File

@@ -8,7 +8,7 @@
#endif #endif
// //
// boost/smart_ptr/detail/sp_has_sync.hpp // boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp
// //
// Copyright (c) 2008, 2009 Peter Dimov // Copyright (c) 2008, 2009 Peter Dimov
// //
@@ -16,50 +16,50 @@
// See accompanying file LICENSE_1_0.txt or copy at // See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt) // http://www.boost.org/LICENSE_1_0.txt)
// //
// Defines the BOOST_SP_HAS_SYNC macro if the __sync_* intrinsics // Defines the BOOST_SP_HAS_SYNC_INTRINSICS macro if the __sync_* intrinsics
// are available. // are available.
// //
#ifndef BOOST_SP_NO_SYNC #if !defined( BOOST_SP_NO_SYNC_INTRINSICS ) && !defined( BOOST_SP_NO_SYNC )
#if !defined( __c2__ ) && defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 ) #if defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 ) && !defined( __c2__ )
# define BOOST_SP_HAS_SYNC # define BOOST_SP_HAS_SYNC_INTRINSICS
#elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 ) && !defined( __COMPILER_VER__ ) #elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 ) && !defined( __COMPILER_VER__ )
# define BOOST_SP_HAS_SYNC # define BOOST_SP_HAS_SYNC_INTRINSICS
#elif !defined( __c2__ ) && defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) #elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __c2__ )
#define BOOST_SP_HAS_SYNC #define BOOST_SP_HAS_SYNC_INTRINSICS
#if defined( __arm__ ) || defined( __armel__ ) #if defined( __arm__ ) || defined( __armel__ )
#undef BOOST_SP_HAS_SYNC #undef BOOST_SP_HAS_SYNC_INTRINSICS
#endif #endif
#if defined( __hppa ) || defined( __hppa__ ) #if defined( __hppa ) || defined( __hppa__ )
#undef BOOST_SP_HAS_SYNC #undef BOOST_SP_HAS_SYNC_INTRINSICS
#endif #endif
#if defined( __m68k__ ) #if defined( __m68k__ )
#undef BOOST_SP_HAS_SYNC #undef BOOST_SP_HAS_SYNC_INTRINSICS
#endif #endif
#if defined( __sh__ ) #if defined( __sh__ )
#undef BOOST_SP_HAS_SYNC #undef BOOST_SP_HAS_SYNC_INTRINSICS
#endif #endif
#if defined( __sparc__ ) #if defined( __sparc__ )
#undef BOOST_SP_HAS_SYNC #undef BOOST_SP_HAS_SYNC_INTRINSICS
#endif #endif
#if defined( __INTEL_COMPILER ) && !defined( __ia64__ ) && ( __INTEL_COMPILER < 1110 ) #if defined( __INTEL_COMPILER ) && !defined( __ia64__ ) && ( __INTEL_COMPILER < 1110 )
#undef BOOST_SP_HAS_SYNC #undef BOOST_SP_HAS_SYNC_INTRINSICS
#endif #endif
#if defined(__PATHSCALE__) && ((__PATHCC__ == 4) && (__PATHCC_MINOR__ < 9)) #if defined(__PATHSCALE__) && ((__PATHCC__ == 4) && (__PATHCC_MINOR__ < 9))
#undef BOOST_SP_HAS_SYNC #undef BOOST_SP_HAS_SYNC_INTRINSICS
#endif #endif
#endif #endif

View File

@@ -29,7 +29,7 @@
// //
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/smart_ptr/detail/sp_has_sync.hpp> #include <boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp>
#if defined( BOOST_SP_USE_STD_ATOMIC ) #if defined( BOOST_SP_USE_STD_ATOMIC )
# if !defined( __clang__ ) # if !defined( __clang__ )
@@ -49,7 +49,7 @@
#elif defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ ) #elif defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ )
# include <boost/smart_ptr/detail/spinlock_gcc_arm.hpp> # include <boost/smart_ptr/detail/spinlock_gcc_arm.hpp>
#elif defined( BOOST_SP_HAS_SYNC ) #elif defined( BOOST_SP_HAS_SYNC_INTRINSICS )
# include <boost/smart_ptr/detail/spinlock_sync.hpp> # include <boost/smart_ptr/detail/spinlock_sync.hpp>
#elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)