Update src/AggregateFunctions/UniquesHashSet.h

Co-authored-by: Yakov Olkhovskiy <99031427+yakov-olkhovskiy@users.noreply.github.com>
This commit is contained in:
Suzy Wang 2023-07-05 10:20:37 -04:00 committed by GitHub
parent 6c92b0b398
commit 55c526b6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,8 @@ private:
inline size_t max_fill() const { return 1ULL << (size_degree - 1); } /// NOLINT
inline size_t mask() const { return buf_size() - 1; }
inline size_t place(HashValue x) const {
inline size_t place(HashValue x) const
{
if constexpr (std::endian::native == std::endian::little)
return (x >> UNIQUES_HASH_BITS_FOR_SKIP) & mask();
else