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