opus/cmake/cpu_info_by_c.c
Marcus Asteborg 510e1029b4
cmake - fix rtcd detection on x86 non windows
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
2022-07-07 22:07:33 -07:00

9 lines
256 B
C

#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);
}