X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;fp=src%2Fbitcount.h;h=f84c51cb8596caf76e658d126330c898dafde7f8;hp=9feed19f9755a94be0022f3e9cf5c891972589d0;hb=b9a88da4abe9a673e8ad0d254d7196da9623e54a;hpb=a69f1d7c2060dc7b320a7b4801105df00b22a96a diff --git a/src/bitcount.h b/src/bitcount.h index 9feed19f..f84c51cb 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -96,7 +96,8 @@ inline int popcount(Bitboard b) { #else - return __builtin_popcountll(b); + __asm__("popcnt %1, %0" : "=r" (b) : "r" (b)); + return b; #endif }