embed xmx code directly into xmx_mix

This commit is contained in:
joaquintides
2022-10-10 21:06:33 +02:00
parent 9e2bf3681f
commit c4cc805063

View File

@ -604,7 +604,14 @@ struct xmx_mix
template<typename Hash,typename T>
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;
}
};