Advertisement
Guest User

Untitled

a guest
May 26th, 2021
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <cpuid.h>
  3.  
  4. int main() {
  5.   unsigned int regs[4];
  6.   __get_cpuid(0, regs, regs+1, regs+2, regs+3);
  7.   for (int i=0; i<4; i++)
  8.     printf("%08x ", regs[i]);
  9.   printf("\n");
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement