From: <man...@us...> - 2014-02-24 19:10:49
|
Revision: 3768 http://sourceforge.net/p/modplug/code/3768 Author: manxorist Date: 2014-02-24 19:10:40 +0000 (Mon, 24 Feb 2014) Log Message: ----------- [Ref] Split ENABLE_SSE3 from ENABLE_SSE2. Modified Paths: -------------- trunk/OpenMPT/common/BuildSettings.h trunk/OpenMPT/mptrack/Autotune.cpp Modified: trunk/OpenMPT/common/BuildSettings.h =================================================================== --- trunk/OpenMPT/common/BuildSettings.h 2014-02-23 23:39:18 UTC (rev 3767) +++ trunk/OpenMPT/common/BuildSettings.h 2014-02-24 19:10:40 UTC (rev 3768) @@ -49,9 +49,12 @@ // Generate inline assembly using SSE instructions (only used when the CPU supports it). #define ENABLE_SSE -// Generate inline assembly using SSE2/SSE3 instructions (only used when the CPU supports it). +// Generate inline assembly using SSE2 instructions (only used when the CPU supports it). #define ENABLE_SSE2 +// Generate inline assembly using SSE3 instructions (only used when the CPU supports it). +#define ENABLE_SSE3 + // Generate inline assembly using AMD specific instruction set extensions (only used when the CPU supports it). #define ENABLE_X86_AMD @@ -60,9 +63,12 @@ // Generate general x64 inline assembly / intrinsics. #define ENABLE_X64 -// Generate inline assembly using SSE2/SSE3 instructions (only used when the CPU supports it). +// Generate inline assembly using SSE2 instructions (only used when the CPU supports it). #define ENABLE_SSE2 +// Generate inline assembly using SSE3 instructions (only used when the CPU supports it). +#define ENABLE_SSE3 + #endif #endif // ENABLE_ASM Modified: trunk/OpenMPT/mptrack/Autotune.cpp =================================================================== --- trunk/OpenMPT/mptrack/Autotune.cpp 2014-02-23 23:39:18 UTC (rev 3767) +++ trunk/OpenMPT/mptrack/Autotune.cpp 2014-02-24 19:10:40 UTC (rev 3768) @@ -14,7 +14,7 @@ #include "../common/thread.h" #include "../soundlib/Sndfile.h" #include "Autotune.h" -#ifdef ENABLE_SSE2 +#ifdef ENABLE_SSE3 #include <emmintrin.h> #endif @@ -164,7 +164,7 @@ { AutotuneThreadData &info = *static_cast<AutotuneThreadData *>(i); info.histogram.resize(HISTORY_BINS, 0); -#ifdef ENABLE_SSE2 +#ifdef ENABLE_SSE3 const bool useSSE = (ProcSupport & PROCSUPPORT_SSE3) != 0; #endif @@ -181,7 +181,7 @@ uint64 autocorrSum = 0; -#ifdef ENABLE_SSE2 +#ifdef ENABLE_SSE3 if(useSSE) { const __m128i *normalData = reinterpret_cast<const __m128i *>(info.sampleData); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |