cpuid_c.c

来自「The Valgrind distribution has multiple t」· C语言 代码 · 共 22 行

C
22
字号
#include <stdio.h>// in cpuid_s.sextern void get_cpuid0 ( unsigned int* buf );extern void get_cpuid1 ( unsigned int* buf );unsigned int buf[4];int main ( void ){   get_cpuid0(&buf[0]);   printf("cpuid words (0): 0x%x 0x%x 0x%x 0x%x\n",           buf[0], buf[1], buf[2], buf[3] );   get_cpuid1(&buf[0]);   printf("cpuid words (1): 0x%x 0x%x 0x%x 0x%x\n",           buf[0], buf[1], buf[2], buf[3] );   return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?