20 int32_t
eax, ebx, ecx, edx;
45#if defined(EIN_TESTING) || defined(EIN_TESTING_CPUID)
46TEST_CASE(
"cpuid",
"[cpuid]") {
49 SECTION(
"CPU vendor enum correctly identifies CPU") {
53 SECTION(
"CPUID function retrieves processor info and feature bits") {
55 bool sse2_supported = result.
edx & (1 << 26);
56 CHECK(sse2_supported);
#define ein_nodiscard
C++17 [[nodiscard]].
@ intel
CPUID reported "GenuineIntel"
@ amd
CPUID reported "AuthenticAMD"
@ unknown
CPUID reported something else
cpuid_t cpuid(int32_t eax, int32_t ecx) noexcept
calls CPUID and returns all of the registers that it responds with.
result from calling the CPUID instruction