mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Revert "Use compiler intrinsic instead of assembly for popcnt"
This reverts commit a69f1d7c20.
This commit is contained in:
@@ -285,7 +285,7 @@ endif
|
||||
|
||||
### 3.9 popcnt
|
||||
ifeq ($(popcnt),yes)
|
||||
CXXFLAGS += -msse4.2 -DUSE_POPCNT
|
||||
CXXFLAGS += -msse3 -DUSE_POPCNT
|
||||
endif
|
||||
|
||||
### 3.10 pext
|
||||
|
||||
@@ -96,7 +96,8 @@ inline int popcount<CNT_HW_POPCNT>(Bitboard b) {
|
||||
|
||||
#else
|
||||
|
||||
return __builtin_popcountll(b);
|
||||
__asm__("popcnt %1, %0" : "=r" (b) : "r" (b));
|
||||
return b;
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user