mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Revert "Use compiler intrinsic instead of assembly for popcnt"
This reverts commit a69f1d7c20.
This commit is contained in:
@@ -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