X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.h;h=c05b6e3f8cfb182dbcaef174b8d4a8e37c6ea529;hb=b9319c4fa4f42438f484d144be9a1306765cf998;hp=f917533374587513fc65cbd21a8d0ee2b777da70;hpb=3d1b067d853d6e8cc22cf18c1abb4cd9833dd38f;p=stockfish diff --git a/src/bitboard.h b/src/bitboard.h index f9175333..c05b6e3f 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -262,7 +262,7 @@ inline int popcount(Bitboard b) { union { Bitboard bb; uint16_t u[4]; } v = { b }; return PopCnt16[v.u[0]] + PopCnt16[v.u[1]] + PopCnt16[v.u[2]] + PopCnt16[v.u[3]]; -#elif defined(_MSC_VER) || defined(__INTEL_COMPILER) +#elif defined(_MSC_VER) return (int)_mm_popcnt_u64(b); @@ -276,7 +276,7 @@ inline int popcount(Bitboard b) { /// lsb() and msb() return the least/most significant bit in a non-zero bitboard -#if defined(__GNUC__) // GCC, Clang, ICC +#if defined(__GNUC__) // GCC, Clang, ICX inline Square lsb(Bitboard b) { assert(b);