shithub: opus

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