ext-cryptopp/TestPrograms/test_x86_cpuid.cxx

8 lines
146 B
C++
Raw Normal View History

2018-11-13 13:48:38 -05:00
int main(int argc, char* argv[])
{
2018-11-13 23:39:39 -05:00
unsigned int a, b, c, d;
2018-11-13 13:48:38 -05:00
asm volatile ( "cpuid" : "+a"(a), "=b"(b), "+c"(c), "=d"(d) );
return 0;
}