Skip to content

Commit c49987e

Browse files
committed
Fix POPCNT check
1 parent c91951e commit c49987e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libpopcnt.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ static inline uint64_t popcnt(const void* data, uint64_t size)
638638
}
639639
#endif
640640

641-
#if defined(HAVE_POPCNT) && \
642-
!defined(__POPCNT__)
641+
#if !defined(HAVE_POPCNT) || \
642+
!defined(__POPCNT__)
643643
/*
644644
* Pure integer popcount algorithm.
645645
* We use unaligned memory accesses here to improve performance.

0 commit comments

Comments
 (0)