From 481bc76d8e1c37d7722471311eb010df2b238f34 Mon Sep 17 00:00:00 2001 From: Zopolis4 Date: Fri, 19 Aug 2022 18:33:17 +1000 Subject: [PATCH] Remove redundant 32-bit code --- Source/Core/Common/Hash.cpp | 24 ------------------------ Source/VSProps/Base.Dolphin.props | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/Source/Core/Common/Hash.cpp b/Source/Core/Common/Hash.cpp index 683efc54fc..8cb697b695 100644 --- a/Source/Core/Common/Hash.cpp +++ b/Source/Core/Common/Hash.cpp @@ -359,30 +359,6 @@ static u64 GetHash64_SSE42_CRC32(const u8* src, u32 len, u32 samples) return h[0] + (h[1] << 10) + (h[2] << 21) + (h[3] << 32); } -#elif defined(_M_X86_64) - -FUNCTION_TARGET_SSE42 -static u64 GetHash64_SSE42_CRC32(const u8* src, u32 len, u32 samples) -{ - u32 h = len; - u32 Step = (len / 4); - const u32* data = (const u32*)src; - const u32* end = data + Step; - if (samples == 0) - samples = std::max(Step, 1u); - Step = Step / samples; - if (Step < 1) - Step = 1; - while (data < end) - { - h = _mm_crc32_u32(h, data[0]); - data += Step; - } - - const u8* data2 = (const u8*)end; - return (u64)_mm_crc32_u32(h, u32(data2[0])); -} - #elif defined(_M_ARM_64) static u64 GetHash64_ARMv8_CRC32(const u8* src, u32 len, u32 samples) diff --git a/Source/VSProps/Base.Dolphin.props b/Source/VSProps/Base.Dolphin.props index 96fe8b6d2a..5912d9d325 100644 --- a/Source/VSProps/Base.Dolphin.props +++ b/Source/VSProps/Base.Dolphin.props @@ -33,7 +33,7 @@ _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING;%(PreprocessorDefinitions) - _ARCH_64=1;_M_X86=1;_M_X86_64=1;%(PreprocessorDefinitions) + _ARCH_64=1;_M_X86_64=1;%(PreprocessorDefinitions) _ARCH_64=1;_M_ARM_64=1;%(PreprocessorDefinitions) USE_UPNP;__LIBUSB__;%(PreprocessorDefinitions) USE_ANALYTICS=1;%(PreprocessorDefinitions)