Remove unnecessary include <city.h> from wide_integer_impl.h

This commit is contained in:
Vitaly Baranov 2023-06-25 14:51:29 +02:00
parent 5eeda0a0d2
commit 71cded08ff

View File

@ -15,8 +15,6 @@
#include <boost/multiprecision/cpp_bin_float.hpp> #include <boost/multiprecision/cpp_bin_float.hpp>
#include <boost/math/special_functions/fpclassify.hpp> #include <boost/math/special_functions/fpclassify.hpp>
#include <city.h>
// NOLINTBEGIN(*) // NOLINTBEGIN(*)
/// Use same extended double for all platforms /// Use same extended double for all platforms
@ -29,6 +27,8 @@ using FromDoubleIntermediateType = long double;
using FromDoubleIntermediateType = boost::multiprecision::cpp_bin_float_double_extended; using FromDoubleIntermediateType = boost::multiprecision::cpp_bin_float_double_extended;
#endif #endif
namespace CityHash_v1_0_2 { struct uint128; }
namespace wide namespace wide
{ {
@ -283,8 +283,11 @@ struct integer<Bits, Signed>::_impl
} }
} }
constexpr static void wide_integer_from_cityhash_uint128(integer<Bits, Signed> & self, const CityHash_v1_0_2::uint128 & value) noexcept template <typename CityHashUInt128 = CityHash_v1_0_2::uint128>
constexpr static void wide_integer_from_cityhash_uint128(integer<Bits, Signed> & self, const CityHashUInt128 & value) noexcept
{ {
static_assert(sizeof(item_count) >= 2);
if constexpr (std::endian::native == std::endian::little) if constexpr (std::endian::native == std::endian::little)
wide_integer_from_tuple_like(self, std::make_pair(value.low64, value.high64)); wide_integer_from_tuple_like(self, std::make_pair(value.low64, value.high64));
else else