diff --git a/include/boost/charconv/detail/integer_conversion.hpp b/include/boost/charconv/detail/integer_conversion.hpp deleted file mode 100644 index b26b5c5..0000000 --- a/include/boost/charconv/detail/integer_conversion.hpp +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2023 Matt Borland -// Distributed under the Boost Software License, Version 1.0. -// https://www.boost.org/LICENSE_1_0.txt - -#ifndef BOOST_CHARCONV_DETAIL_CONCATENATE_HPP -#define BOOST_CHARCONV_DETAIL_CONCATENATE_HPP - -#include -#include -#include -#include - -namespace boost { namespace charconv { namespace detail { - -constexpr std::uint64_t pack(std::uint32_t word1, std::uint32_t word2) noexcept -{ - return static_cast(word1) << 32 | word2; -} - -BOOST_CXX14_CONSTEXPR inline std::pair unpack(std::uint64_t value) -{ - auto x = static_cast(value >> UINT64_C(32)); - auto y = static_cast(value & UINT32_MAX); - - return std::make_pair(x, y); -} - -#ifdef __GLIBCXX_TYPE_INT_N_0 -constexpr unsigned __int128 pack(std::uint64_t word1, std::uint64_t word2) noexcept -{ - return static_cast(word1) << 64 | word2; -} - -BOOST_CXX14_CONSTEXPR inline std::pair unpack(unsigned __int128 value) -{ - auto x = static_cast(value >> 64); - auto y = static_cast(value); - - return std::make_pair(x, y); -} -#endif // defined(__GLIBCXX_TYPE_INT_N_0) - -}}} // Namespaces - -#endif // BOOST_CHARCONV_DETAIL_CONCATENATE_HPP diff --git a/include/boost/charconv/to_chars.hpp b/include/boost/charconv/to_chars.hpp index 1752e2b..a357740 100644 --- a/include/boost/charconv/to_chars.hpp +++ b/include/boost/charconv/to_chars.hpp @@ -9,7 +9,6 @@ #include #include -#include #include #include #include