mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
embed xmx code directly into xmx_mix
This commit is contained in:
@ -604,7 +604,14 @@ struct xmx_mix
|
|||||||
template<typename Hash,typename T>
|
template<typename Hash,typename T>
|
||||||
static inline std::size_t mix(const Hash& h,const T& x)
|
static inline std::size_t mix(const Hash& h,const T& x)
|
||||||
{
|
{
|
||||||
return xmx(h(x));
|
//return xmx(h(x));
|
||||||
|
boost::uint64_t z=(boost::uint64_t)(h(x));
|
||||||
|
|
||||||
|
z^=z>>23;
|
||||||
|
z*=0xff51afd7ed558ccdull;
|
||||||
|
z^=z>>23;
|
||||||
|
|
||||||
|
return (std::size_t)z;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user