From 20268d5291ae1f99ce11154562a055735e6ab530 Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 4 Oct 2018 19:10:47 +0300 Subject: [PATCH] #753 Removed unnecessary ext_family and ext_model checks. --- src/core/cpu/AdvancedCpuInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/cpu/AdvancedCpuInfo.cpp b/src/core/cpu/AdvancedCpuInfo.cpp index 1f86a420..c1a9f8cd 100644 --- a/src/core/cpu/AdvancedCpuInfo.cpp +++ b/src/core/cpu/AdvancedCpuInfo.cpp @@ -75,10 +75,10 @@ xmrig::AdvancedCpuInfo::AdvancedCpuInfo() : if (data.flags[CPU_FEATURE_AES]) { m_aes = true; - if (data.vendor == VENDOR_AMD && data.ext_family >= 23) { + if (data.vendor == VENDOR_AMD) { m_assembly = ASM_RYZEN; } - else if (data.vendor == VENDOR_INTEL && data.ext_model >= 42) { + else if (data.vendor == VENDOR_INTEL) { m_assembly = ASM_INTEL; } }