shithub: opus

ref: 8cf872a186b96085b1bb3a547afd598354ebeb87
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);
}