We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a88da commit 85b08ceCopy full SHA for 85b08ce
2 files changed
src/Makefile
@@ -285,7 +285,7 @@ endif
285
286
### 3.9 popcnt
287
ifeq ($(popcnt),yes)
288
- CXXFLAGS += -msse3 -DUSE_POPCNT
+ CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT
289
endif
290
291
### 3.10 pext
src/bitcount.h
@@ -96,8 +96,7 @@ inline int popcount<CNT_HW_POPCNT>(Bitboard b) {
96
97
#else
98
99
- __asm__("popcnt %1, %0" : "=r" (b) : "r" (b));
100
- return b;
+ return __builtin_popcountll(b);
101
102
#endif
103
}
0 commit comments