shithub: opus

ref: 510e1029b45aa01a7047e5b3b82169be40911b96
dir: /cmake/cpu_info_by_c.c/

View raw version
#include <cpuid.h>
int main() {
    unsigned int CPUInfo0;
    unsigned int CPUInfo1;
    unsigned int CPUInfo2;
    unsigned int CPUInfo3;
    unsigned int InfoType;
    return __get_cpuid_count(InfoType, 0, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
}