mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Fix POPCNT support on mingw 64
When using asm 'popcnt' instruction the given operand registers must be of the same type. No functional change.
This commit is contained in:
@@ -96,9 +96,8 @@ inline int popcount<CNT_HW_POPCNT>(Bitboard b) {
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
unsigned long ret;
|
__asm__("popcnt %1, %0" : "=r" (b) : "r" (b));
|
||||||
__asm__("popcnt %1, %0" : "=r" (ret) : "r" (b));
|
return b;
|
||||||
return ret;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user