summaryrefslogtreecommitdiff
path: root/Source/Core/Common/x64CPUDetect.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-07-28 23:39:38 -0400
committerLioncash <mathew1800@gmail.com>2015-07-28 23:44:18 -0400
commit3a450f72f828433f1a3bee3b3e1e2da1f97d73ae (patch)
tree0b3ee7fab0e8805fe6636d1b1251aa3cb4fe7219 /Source/Core/Common/x64CPUDetect.cpp
parent93492a0e5a92ce44af6f2333cdf4ff2b5ed247f8 (diff)
CPUDetect: Remove a memset call on the this pointer
Diffstat (limited to 'Source/Core/Common/x64CPUDetect.cpp')
-rw-r--r--Source/Core/Common/x64CPUDetect.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp
index 0e9f32e622..8bce493b5a 100644
--- a/Source/Core/Common/x64CPUDetect.cpp
+++ b/Source/Core/Common/x64CPUDetect.cpp
@@ -61,7 +61,6 @@ CPUInfo::CPUInfo()
// Detects the various CPU features
void CPUInfo::Detect()
{
- memset(this, 0, sizeof(*this));
#ifdef _M_X86_64
Mode64bit = true;
OS64bit = true;
@@ -79,7 +78,6 @@ void CPUInfo::Detect()
// Assume CPU supports the CPUID instruction. Those that don't can barely
// boot modern OS:es anyway.
int cpu_id[4];
- memset(brand_string, 0, sizeof(brand_string));
// Detect CPU's CPUID capabilities, and grab CPU string
__cpuid(cpu_id, 0x00000000);