X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=3c5ba2a1fa4004e40905e0b2514d76d4ab1518ee;hp=0992c00625e084ecc1fa78110ccef0c04a500166;hb=7614501362896ddee902c1257f1b56ad148bc4d3;hpb=22ca7a601f8484d03eb7e9be79e03a74d2e4aa2c diff --git a/src/bitcount.h b/src/bitcount.h index 0992c006..3c5ba2a1 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -85,6 +85,8 @@ template<> inline int count_1s(Bitboard b) { #if !defined(USE_POPCNT) return int(b != 0); // Avoid 'b not used' warning +#elif defined(_MSC_VER) && defined(__INTEL_COMPILER) + return _mm_popcnt_u64(b); #elif defined(_MSC_VER) return __popcnt64(b); #elif defined(__GNUC__)