Skip to content

Commit

Permalink
HAS_POPCNT macro has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Jun 21, 2024
1 parent 592f4dd commit e18c704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/popcnt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit e18c704

Please sign in to comment.