| 953 | // --------------------------------------------------------------------------- |
| 954 | #if defined(SPP_POPCNT_CHECK) |
| 955 | static inline bool spp_popcount_check() |
| 956 | { |
| 957 | int cpuInfo[4] = { -1 }; |
| 958 | spp_cpuid(cpuInfo, 1); |
| 959 | if (cpuInfo[2] & (1 << 23)) |
| 960 | return true; // means SPP_POPCNT supported |
| 961 | return false; |
| 962 | } |
| 963 | #endif |
| 964 | |
| 965 | #if defined(SPP_POPCNT_CHECK) && defined(SPP_POPCNT) |
no test coverage detected