diff options
Diffstat (limited to 'src/common/cpu_detect.h')
| -rw-r--r-- | src/common/cpu_detect.h | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/src/common/cpu_detect.h b/src/common/cpu_detect.h deleted file mode 100644 index b585f9608..000000000 --- a/src/common/cpu_detect.h +++ /dev/null | |||
| @@ -1,78 +0,0 @@ | |||
| 1 | // Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | |||
| 6 | // Detect the cpu, so we'll know which optimizations to use | ||
| 7 | #pragma once | ||
| 8 | |||
| 9 | #include <string> | ||
| 10 | |||
| 11 | enum CPUVendor | ||
| 12 | { | ||
| 13 | VENDOR_INTEL = 0, | ||
| 14 | VENDOR_AMD = 1, | ||
| 15 | VENDOR_ARM = 2, | ||
| 16 | VENDOR_OTHER = 3, | ||
| 17 | }; | ||
| 18 | |||
| 19 | struct CPUInfo | ||
| 20 | { | ||
| 21 | CPUVendor vendor; | ||
| 22 | |||
| 23 | char cpu_string[0x21]; | ||
| 24 | char brand_string[0x41]; | ||
| 25 | bool OS64bit; | ||
| 26 | bool CPU64bit; | ||
| 27 | bool Mode64bit; | ||
| 28 | |||
| 29 | bool HTT; | ||
| 30 | int num_cores; | ||
| 31 | int logical_cpu_count; | ||
| 32 | |||
| 33 | bool bSSE; | ||
| 34 | bool bSSE2; | ||
| 35 | bool bSSE3; | ||
| 36 | bool bSSSE3; | ||
| 37 | bool bPOPCNT; | ||
| 38 | bool bSSE4_1; | ||
| 39 | bool bSSE4_2; | ||
| 40 | bool bLZCNT; | ||
| 41 | bool bSSE4A; | ||
| 42 | bool bAVX; | ||
| 43 | bool bAES; | ||
| 44 | bool bLAHFSAHF64; | ||
| 45 | bool bLongMode; | ||
| 46 | |||
| 47 | // ARM specific CPUInfo | ||
| 48 | bool bSwp; | ||
| 49 | bool bHalf; | ||
| 50 | bool bThumb; | ||
| 51 | bool bFastMult; | ||
| 52 | bool bVFP; | ||
| 53 | bool bEDSP; | ||
| 54 | bool bThumbEE; | ||
| 55 | bool bNEON; | ||
| 56 | bool bVFPv3; | ||
| 57 | bool bTLS; | ||
| 58 | bool bVFPv4; | ||
| 59 | bool bIDIVa; | ||
| 60 | bool bIDIVt; | ||
| 61 | bool bArmV7; // enable MOVT, MOVW etc | ||
| 62 | |||
| 63 | // ARMv8 specific | ||
| 64 | bool bFP; | ||
| 65 | bool bASIMD; | ||
| 66 | |||
| 67 | // Call Detect() | ||
| 68 | explicit CPUInfo(); | ||
| 69 | |||
| 70 | // Turn the cpu info into a string we can show | ||
| 71 | std::string Summarize(); | ||
| 72 | |||
| 73 | private: | ||
| 74 | // Detects the various cpu features | ||
| 75 | void Detect(); | ||
| 76 | }; | ||
| 77 | |||
| 78 | extern CPUInfo cpu_info; | ||