1
0
Fork 0
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:
Marco Costalba 2012-10-06 12:53:41 +02:00
parent d777c4d789
commit 954fc950d9

View file

@ -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
} }