From bb30498399bae6268b8f52570a0ba902d8a88560 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 27 Oct 2022 18:22:46 +0200 Subject: [PATCH] s/unchecked_countr_zero/__builtin_ctz --- include/boost/unordered/detail/foa.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 5f731494..ebd0db3c 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1558,7 +1558,8 @@ private: auto p=arrays.elements+pos*N; prefetch_elements(p); do{ - auto n=unchecked_countr_zero(mask); + //auto n=unchecked_countr_zero(mask); + auto n=__builtin_ctz((unsigned int)mask); if(BOOST_LIKELY(bool(pred()(x,key_from(p[n]))))){ return {pg,n,p+n}; }