File indexing completed on 2025-12-16 09:43:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef BOOST_ATOMIC_DETAIL_STRING_OPS_HPP_INCLUDED_
0015 #define BOOST_ATOMIC_DETAIL_STRING_OPS_HPP_INCLUDED_
0016
0017 #include <boost/atomic/detail/config.hpp>
0018
0019 #ifdef BOOST_HAS_PRAGMA_ONCE
0020 #pragma once
0021 #endif
0022
0023 #if defined(__has_builtin)
0024 #if __has_builtin(__builtin_memcpy)
0025 #define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY
0026 #endif
0027 #if __has_builtin(__builtin_memcmp)
0028 #define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP
0029 #endif
0030 #if __has_builtin(__builtin_memset)
0031 #define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET
0032 #endif
0033 #elif defined(BOOST_GCC)
0034 #define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY
0035 #define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP
0036 #define BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET
0037 #endif
0038
0039 #if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY)
0040 #define BOOST_ATOMIC_DETAIL_MEMCPY __builtin_memcpy
0041 #else
0042 #define BOOST_ATOMIC_DETAIL_MEMCPY std::memcpy
0043 #endif
0044
0045 #if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP)
0046 #define BOOST_ATOMIC_DETAIL_MEMCMP __builtin_memcmp
0047 #else
0048 #define BOOST_ATOMIC_DETAIL_MEMCMP std::memcmp
0049 #endif
0050
0051 #if defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET)
0052 #define BOOST_ATOMIC_DETAIL_MEMSET __builtin_memset
0053 #else
0054 #define BOOST_ATOMIC_DETAIL_MEMSET std::memset
0055 #endif
0056
0057 #if !defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCPY) || !defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMCMP) || !defined(BOOST_ATOMIC_DETAIL_HAS_BUILTIN_MEMSET)
0058 #include <cstring>
0059 #endif
0060
0061 #endif