ext-cryptopp/TestPrograms/test_x86_cpuid.cpp

8 lines
155 B
C++

int main(int argc, char* argv[])
{
unsigned int a, b, c, d;
asm volatile ( "cpuid" : "+a"(a), "=b"(b), "+c"(c), "=d"(d) );
return 0;
}