Merge branch 'master' of https://github.com/odin-lang/Odin
This commit is contained in:
commit
1a75a71403
1 file changed
+7
@@ -146,11 +146,18 @@ void report_windows_product_type(DWORD ProductType) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void odin_cpuid(int leaf, int result[]) {
|
void odin_cpuid(int leaf, int result[]) {
|
||||||
|
#if defined(GB_CPU_ARM)
|
||||||
|
return;
|
||||||
|
|
||||||
|
#elif defined(GB_CPU_X86)
|
||||||
|
|
||||||
#if defined(GB_COMPILER_MSVC)
|
#if defined(GB_COMPILER_MSVC)
|
||||||
__cpuid(result, leaf);
|
__cpuid(result, leaf);
|
||||||
#else
|
#else
|
||||||
__get_cpuid(leaf, (unsigned int*)&result[0], (unsigned int*)&result[1], (unsigned int*)&result[2], (unsigned int*)&result[3]);
|
__get_cpuid(leaf, (unsigned int*)&result[0], (unsigned int*)&result[1], (unsigned int*)&result[2], (unsigned int*)&result[3]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void report_cpu_info() {
|
void report_cpu_info() {
|
||||||
|
|||||||
Reference in new issue
Block a user