Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cpu_info_by_c.c « cmake - gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 117084eb7317babccbae95f856329e9b62542b04 (plain)
1
2
3
4
5
6
7
8
9
#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);
}