MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / spp_popcount_check

Function spp_popcount_check

libCacheSim/dataStructure/sparsepp/spp.h:955–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953// ---------------------------------------------------------------------------
954#if defined(SPP_POPCNT_CHECK)
955static 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)

Callers 1

spp_popcountFunction · 0.85

Calls 1

spp_cpuidFunction · 0.85

Tested by

no test coverage detected