summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/CPUDetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/CPUDetect.cpp')
-rw-r--r--Source/Core/Common/Src/CPUDetect.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/CPUDetect.cpp b/Source/Core/Common/Src/CPUDetect.cpp
index cd77d37346..b09570283d 100644
--- a/Source/Core/Common/Src/CPUDetect.cpp
+++ b/Source/Core/Common/Src/CPUDetect.cpp
@@ -201,3 +201,23 @@ std::string CPUInfo::Summarize()
if (bLongMode) sum += ", 64-bit support";
return sum;
}
+
+// Turn the cpu info into a string we can show(This version uses headings and line breaks)
+std::string CPUInfo::Summarize_long()
+{
+ std::string sum;
+ sum = StringFromFormat("CPU Brand: %s\n",cpu_string);
+
+ sum += StringFromFormat("Number of cores: %i \n ",num_cores);
+
+ sum+= "Supported instruction sets:\n";
+
+ if (bSSE) sum += " -SSE\n";
+ if (bSSE2) sum += " -SSE2\n";
+ if (bSSE3) sum += " -SSE3\n";
+ if (bSSSE3) sum += " -SSSE3\n";
+ if (bSSE4_1) sum += " -SSE4.1\n";
+ if (bSSE4_2) sum += " -SSE4.2\n";
+ if (bLongMode) sum += "64-bit supported";
+ return sum;
+} \ No newline at end of file