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