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

Function cpu_supports_avx2

Source/astcenccli_entry.cpp:193–201  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

191 * @return @c true if supported, @c false if not.
192 */
193static bool cpu_supports_avx2()
194{
195 if (!g_init)
196 {
197 detect_cpu_isa();
198 }
199
200 return g_cpu_has_avx2;
201}
202#endif
203
204/**

Callers 1

validate_cpu_isaFunction · 0.85

Calls 1

detect_cpu_isaFunction · 0.85

Tested by

no test coverage detected