MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / AVXEnabled

Function AVXEnabled

src/crypto/sha256.cpp:563–568  ·  view source on GitHub ↗

Check whether the OS has enabled AVX registers. */

Source from the content-addressed store, hash-verified

561
562/** Check whether the OS has enabled AVX registers. */
563bool AVXEnabled()
564{
565 uint32_t a, d;
566 __asm__("xgetbv" : "=a"(a), "=d"(d) : "c"(0));
567 return (a & 6) == 6;
568}
569#endif
570} // namespace
571

Callers 1

SHA256AutoDetectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected