mirror of
https://github.com/boostorg/container_hash.git
synced 2025-08-03 14:34:39 +02:00
Fix 64 bit hash_mix multiplier
This commit is contained in:
@@ -68,7 +68,7 @@ template<> struct hash_mix_impl<64>
|
|||||||
{
|
{
|
||||||
inline static boost::uint64_t fn( boost::uint64_t x )
|
inline static boost::uint64_t fn( boost::uint64_t x )
|
||||||
{
|
{
|
||||||
boost::uint64_t const m = (boost::uint64_t(0xe9846af9) << 32) + 0xb1a615d;
|
boost::uint64_t const m = (boost::uint64_t(0xe9846af) << 32) + 0x9b1a615d;
|
||||||
|
|
||||||
x ^= x >> 32;
|
x ^= x >> 32;
|
||||||
x *= m;
|
x *= m;
|
||||||
|
Reference in New Issue
Block a user