MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / cpu_supports_popcnt

Function cpu_supports_popcnt

Source/astcenccli_entry.cpp:142–150  ·  view source on GitHub ↗

* @brief Run-time detection if the host CPU supports the POPCNT extension. * * @return @c true if supported, @c false if not. */

Source from the content-addressed store, hash-verified

140 * @return @c true if supported, @c false if not.
141 */
142static bool cpu_supports_popcnt()
143{
144 if (!g_init)
145 {
146 detect_cpu_isa();
147 }
148
149 return g_cpu_has_popcnt;
150}
151#endif
152
153#if ASTCENC_F16C > 0

Callers 1

validate_cpu_isaFunction · 0.85

Calls 1

detect_cpu_isaFunction · 0.85

Tested by

no test coverage detected