X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=8843aba742a58f27e78ea7cc0d1e20043059306d;hp=a69ad8e8418535fbe01645368800815d19491b9f;hb=158014b39d69eaaf791d4913b98ffde5c4d7a874;hpb=9204a60dbbebf7e319bb588acc91bf691a3ede9a diff --git a/src/bitcount.h b/src/bitcount.h index a69ad8e8..8843aba7 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -96,9 +96,8 @@ inline int popcount(Bitboard b) { #else - unsigned long ret; - __asm__("popcnt %1, %0" : "=r" (ret) : "r" (b)); - return ret; + __asm__("popcnt %1, %0" : "=r" (b) : "r" (b)); + return b; #endif }