From e18c7043bef66d87505852f06aeb95fb5afa02ee Mon Sep 17 00:00:00 2001 From: Kim Walisch Date: Fri, 21 Jun 2024 22:44:03 +0200 Subject: [PATCH] HAS_POPCNT macro has been removed --- include/popcnt.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/popcnt.hpp b/include/popcnt.hpp index c08273d6..054ae88e 100644 --- a/include/popcnt.hpp +++ b/include/popcnt.hpp @@ -134,7 +134,7 @@ namespace { ALWAYS_INLINE uint64_t popcnt64(uint64_t x) { -#if defined(HAS_POPCNT) +#if defined(__AVX__) return __popcnt64(x); #elif defined(ENABLE_MULTIARCH_x86_POPCNT) if_likely(cpu_supports_popcnt) @@ -158,7 +158,7 @@ namespace { ALWAYS_INLINE uint64_t popcnt64(uint64_t x) { -#if defined(HAS_POPCNT) +#if defined(__AVX__) return __popcnt(uint32_t(x)) + __popcnt(uint32_t(x >> 32)); #elif defined(ENABLE_MULTIARCH_x86_POPCNT)