From 0f8dd003a3ff051e29662ba1c94fb5c6d361a54a Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 27 Jan 2023 08:15:37 +0200 Subject: [PATCH] Switch default mixing policy from xmx to mulx --- include/boost/unordered/detail/foa.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index c1f12f38..b9f588d5 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -726,9 +726,11 @@ private: std::size_t pos,step=0; }; -/* Mixing policies: no_mix is the identity function and xmx_mix uses the - * xmx function defined in . - * foa::table mixes hash results with xmx_mix unless the hash is marked as +/* Mixing policies: no_mix is the identity function, xmx_mix uses the + * xmx function defined in , and mulx_mix + * uses the mulx function from . + * + * foa::table mixes hash results with mulx_mix unless the hash is marked as * avalanching, i.e. of good quality (see ). */ @@ -1164,7 +1166,7 @@ table:empty_value,empty_value,empty_value using mix_policy=typename std::conditional< hash_is_avalanching::value, no_mix, - xmx_mix + mulx_mix >::type; using alloc_traits=boost::allocator_traits;