summaryrefslogtreecommitdiff
path: root/Source/Core/Common/x64CPUDetect.cpp
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2015-08-04 17:43:36 +0200
committerMarkus Wick <markus@selfnet.de>2015-08-04 17:43:36 +0200
commit19af6e0d93dcfc98866909c94d321dab14cd31fd (patch)
tree1c78d08903d6ccfc9b25d485249434cbd4ff8397 /Source/Core/Common/x64CPUDetect.cpp
parent8d72145c4454cf3e86ff11f0ee9e9f3ca1a63d45 (diff)
parent3a450f72f828433f1a3bee3b3e1e2da1f97d73ae (diff)
Merge pull request #2787 from lioncash/memset
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);