mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 11:39:15 +00: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:
parent
d777c4d789
commit
954fc950d9
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue