Skip to content

Commit ed91bf7

Browse files
committed
use mm_popcount
1 parent ae753b6 commit ed91bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/defs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int count_population(uint64_t bitboard) {
177177
#ifdef POPCOUNT
178178

179179
#if defined(__MINGW32__) || defined(_MSC_VER)
180-
return __popcnt64(bitboard);
180+
return _mm_popcnt_u64(bitboard);
181181
#elif defined(__GNUC__)
182182
return __builtin_popcountll(bitboard);
183183
#endif

0 commit comments

Comments
 (0)