diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-11-07 12:56:49 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-11-07 12:56:49 +0100 |
| commit | 925d8749e030c9dec49a5e27080000a4f950d625 (patch) | |
| tree | 5b6d409dbfee79ec99dcd3ab554c4c4479084588 /src/bug_report.cpp | |
| parent | fd442b8678baa63be60c3c555d6063386e1d7453 (diff) | |
Suggest `-microarch:native` if `popcnt` instruction is missing.
Fixes #4453.
Diffstat (limited to 'src/bug_report.cpp')
| -rw-r--r-- | src/bug_report.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/bug_report.cpp b/src/bug_report.cpp index c5a8adea3..3f58ebd24 100644 --- a/src/bug_report.cpp +++ b/src/bug_report.cpp @@ -2,12 +2,6 @@ Gather and print platform and version info to help with reporting Odin bugs. */ -#if !defined(GB_COMPILER_MSVC) - #if defined(GB_CPU_X86) - #include <cpuid.h> - #endif -#endif - #if defined(GB_SYSTEM_LINUX) #include <sys/utsname.h> #include <sys/sysinfo.h> @@ -154,21 +148,6 @@ gb_internal void report_windows_product_type(DWORD ProductType) { } #endif -gb_internal void odin_cpuid(int leaf, int result[]) { - #if defined(GB_CPU_ARM) || defined(GB_CPU_RISCV) - return; - - #elif defined(GB_CPU_X86) - - #if defined(GB_COMPILER_MSVC) - __cpuid(result, leaf); - #else - __get_cpuid(leaf, (unsigned int*)&result[0], (unsigned int*)&result[1], (unsigned int*)&result[2], (unsigned int*)&result[3]); - #endif - - #endif -} - gb_internal void report_cpu_info() { gb_printf("\tCPU: "); |