File tree 3 files changed +30
-3
lines changed
contrib/restricted/boost/core
3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 47
47
# if __has_builtin(__builtin_bit_cast)
48
48
# define BOOST_CORE_HAS_BUILTIN_BIT_CAST
49
49
# endif
50
+ # if __has_builtin(__builtin_bswap16)
51
+ # define BOOST_CORE_HAS_BUILTIN_BSWAP16
52
+ # endif
50
53
#endif
51
54
52
- #if defined(BOOST_MSVC) && BOOST_MSVC >= 1926
55
+ #if ! defined(BOOST_CORE_HAS_BUILTIN_BIT_CAST) && (defined( BOOST_MSVC) && BOOST_MSVC >= 1926)
53
56
# define BOOST_CORE_HAS_BUILTIN_BIT_CAST
54
57
#endif
55
58
59
+ #if !defined(BOOST_CORE_HAS_BUILTIN_BSWAP16) && (defined(BOOST_GCC) && BOOST_GCC >= 40800)
60
+ # define BOOST_CORE_HAS_BUILTIN_BSWAP16
61
+ #endif
62
+
56
63
namespace boost
57
64
{
58
65
namespace core
@@ -825,11 +832,22 @@ BOOST_CONSTEXPR inline boost::uint8_t byteswap_impl( boost::uint8_t x ) BOOST_NO
825
832
return x;
826
833
}
827
834
835
+ #if defined(BOOST_CORE_HAS_BUILTIN_BSWAP16)
836
+
837
+ BOOST_CONSTEXPR inline boost::uint16_t byteswap_impl ( boost::uint16_t x ) BOOST_NOEXCEPT
838
+ {
839
+ return __builtin_bswap16 ( x );
840
+ }
841
+
842
+ #else
843
+
828
844
BOOST_CONSTEXPR inline boost::uint16_t byteswap_impl ( boost::uint16_t x ) BOOST_NOEXCEPT
829
845
{
830
846
return static_cast <boost::uint16_t >( x << 8 | x >> 8 );
831
847
}
832
848
849
+ #endif
850
+
833
851
#if defined(__GNUC__) || defined(__clang__)
834
852
835
853
BOOST_CXX14_CONSTEXPR inline boost::uint32_t byteswap_impl ( boost::uint32_t x ) BOOST_NOEXCEPT
Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ template<class T> inline void checked_array_delete(T * x) BOOST_NOEXCEPT
60
60
delete [] x;
61
61
}
62
62
63
+ // Block unintended ADL
64
+ namespace checked_deleters
65
+ {
66
+
63
67
template <class T > struct checked_deleter
64
68
{
65
69
typedef void result_type;
@@ -83,6 +87,11 @@ template<class T> struct checked_array_deleter
83
87
}
84
88
};
85
89
90
+ } // namespace checked_deleters
91
+
92
+ using checked_deleters::checked_deleter;
93
+ using checked_deleters::checked_array_deleter;
94
+
86
95
} // namespace boost
87
96
88
97
#endif // #ifndef BOOST_CORE_CHECKED_DELETE_HPP
Original file line number Diff line number Diff line change 9
9
10
10
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
11
11
12
- VERSION(1.84 .0)
12
+ VERSION(1.85 .0)
13
13
14
- ORIGINAL_SOURCE(https ://github.com/boostorg/core/archive/boost-1.84 .0.tar.gz)
14
+ ORIGINAL_SOURCE(https ://github.com/boostorg/core/archive/boost-1.85 .0.tar.gz)
15
15
16
16
PEERDIR(
17
17
contrib/restricted/boost/assert
You can’t perform that action at this time.
0 commit comments