diff options
Diffstat (limited to 'src/common/x64/cpu_detect.h')
| -rw-r--r-- | src/common/x64/cpu_detect.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/common/x64/cpu_detect.h b/src/common/x64/cpu_detect.h index 0af3a8adb..20f2ba234 100644 --- a/src/common/x64/cpu_detect.h +++ b/src/common/x64/cpu_detect.h | |||
| @@ -4,23 +4,12 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <string> | ||
| 8 | |||
| 9 | namespace Common { | 7 | namespace Common { |
| 10 | 8 | ||
| 11 | /// x86/x64 CPU vendors that may be detected by this module | ||
| 12 | enum class CPUVendor { | ||
| 13 | INTEL, | ||
| 14 | AMD, | ||
| 15 | OTHER, | ||
| 16 | }; | ||
| 17 | |||
| 18 | /// x86/x64 CPU capabilities that may be detected by this module | 9 | /// x86/x64 CPU capabilities that may be detected by this module |
| 19 | struct CPUCaps { | 10 | struct CPUCaps { |
| 20 | CPUVendor vendor; | ||
| 21 | char cpu_string[0x21]; | 11 | char cpu_string[0x21]; |
| 22 | char brand_string[0x41]; | 12 | char brand_string[0x41]; |
| 23 | int num_cores; | ||
| 24 | bool sse; | 13 | bool sse; |
| 25 | bool sse2; | 14 | bool sse2; |
| 26 | bool sse3; | 15 | bool sse3; |
| @@ -35,20 +24,6 @@ struct CPUCaps { | |||
| 35 | bool fma; | 24 | bool fma; |
| 36 | bool fma4; | 25 | bool fma4; |
| 37 | bool aes; | 26 | bool aes; |
| 38 | |||
| 39 | // Support for the FXSAVE and FXRSTOR instructions | ||
| 40 | bool fxsave_fxrstor; | ||
| 41 | |||
| 42 | bool movbe; | ||
| 43 | |||
| 44 | // This flag indicates that the hardware supports some mode in which denormal inputs and outputs | ||
| 45 | // are automatically set to (signed) zero. | ||
| 46 | bool flush_to_zero; | ||
| 47 | |||
| 48 | // Support for LAHF and SAHF instructions in 64-bit mode | ||
| 49 | bool lahf_sahf_64; | ||
| 50 | |||
| 51 | bool long_mode; | ||
| 52 | }; | 27 | }; |
| 53 | 28 | ||
| 54 | /** | 29 | /** |
| @@ -57,10 +32,4 @@ struct CPUCaps { | |||
| 57 | */ | 32 | */ |
| 58 | const CPUCaps& GetCPUCaps(); | 33 | const CPUCaps& GetCPUCaps(); |
| 59 | 34 | ||
| 60 | /** | ||
| 61 | * Gets a string summary of the name and supported capabilities of the host CPU | ||
| 62 | * @return String summary | ||
| 63 | */ | ||
| 64 | std::string GetCPUCapsString(); | ||
| 65 | |||
| 66 | } // namespace Common | 35 | } // namespace Common |