summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/CPUDetect.h
diff options
context:
space:
mode:
authornodchip <nodchip@gmail.com>2010-02-24 10:10:48 +0000
committernodchip <nodchip@gmail.com>2010-02-24 10:10:48 +0000
commitb7e73102caa74c56a042313b11e4b17841ed3f19 (patch)
tree89b7a1c60640255b2a91d646642234f44c8d3dec /Source/Core/Common/Src/CPUDetect.h
parent47fb73b71a27d1a1aaa9a7dc160de573c92a9ee3 (diff)
Fixed the issue that cpu_info is not initialized in plugin. This commit enables SSSE3/SSE4.1 codes in rev5119.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5120 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/CPUDetect.h')
-rw-r--r--Source/Core/Common/Src/CPUDetect.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/CPUDetect.h b/Source/Core/Common/Src/CPUDetect.h
index 55a0de93c9..55c6b62b3b 100644
--- a/Source/Core/Common/Src/CPUDetect.h
+++ b/Source/Core/Common/Src/CPUDetect.h
@@ -52,12 +52,16 @@ struct CPUInfo
bool bSSE4A;
bool bLAHFSAHF64;
bool bLongMode;
-
- // Detects the various cpu features
- void Detect();
+ // Call Detect()
+ explicit CPUInfo();
+
// Turn the cpu info into a string we can show
std::string Summarize();
+
+private:
+ // Detects the various cpu features
+ void Detect();
};
extern CPUInfo cpu_info;