20 #ifndef ANTKEEPER_UTILITY_HASH_COMBINE_HPP
21 #define ANTKEEPER_UTILITY_HASH_COMBINE_HPP
34 [[nodiscard]]
inline constexpr std::uint32_t
hash_combine(std::uint32_t x, std::uint32_t y) noexcept
37 return x ^ (y + 0x9e3779b9 + (x << 6) + (x >> 2));
40 [[nodiscard]]
inline constexpr std::uint64_t
hash_combine(std::uint64_t x, std::uint64_t y) noexcept
43 return x ^ (y + 0x9e3779b97f4a7c16 + (x << 6) + (x >> 2));
constexpr std::uint32_t hash_combine(std::uint32_t x, std::uint32_t y) noexcept
Combines two hash values.