X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=9feed19f9755a94be0022f3e9cf5c891972589d0;hp=f84c51cb8596caf76e658d126330c898dafde7f8;hb=d3091971b789b4be4c56fdf608eae33c5c54bbd4;hpb=c9dcda6ac488c0058ebd567e1f52e30b8cd0db20 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 }