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

Function cpu_supports_sve

Source/astcenccli_entry.cpp:263–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261
262#include <sys/auxv.h>
263static bool cpu_supports_sve()
264{
265 long hwcaps = getauxval(AT_HWCAP);
266 return (hwcaps & HWCAP_SVE) != 0;
267}
268
269/**
270 * @brief Print a string to stderr.

Callers 1

validate_cpu_isaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected