X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=4016063383938fe7fbcc9309ff9767a2bfec6a7c;hp=12826a9f9a05472c6e48066c202b55e0eea158ea;hb=e7d3a006cda7822517159cad0ef222eb7e46db00;hpb=3376c68f4bb83dc9fd874eb9d710dab09609ae54 diff --git a/src/bitcount.h b/src/bitcount.h index 12826a9f..40160633 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -159,4 +159,9 @@ inline int count_1s_max_15(Bitboard b) { } +// Global variable initialized at startup that is set to true if +// CPU on which application runs support POPCNT intrinsic. + +const bool CpuHasPOPCNT = cpu_has_popcnt(); + #endif // !defined(BITCOUNT_H_INCLUDED)