From bf8f823751fa581cf7cbd33c7c466101d481b2f2 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 3 Aug 2009 18:53:10 +0200 Subject: [PATCH] Mixer: fixed wrong macro logic leading to potential performance loss The macro logic for defining the SPINLOCK_PAUSE macro tested against LMMS_HOST_X86_64 twice instead of testing against LMMS_HOST_X86_64 and LMMS_HOST_X86. This caused the SPINLOCK_PAUSE macro not being set on x86. --- src/core/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mixer.cpp b/src/core/mixer.cpp index 2351366f2..9a4aa5b50 100644 --- a/src/core/mixer.cpp +++ b/src/core/mixer.cpp @@ -252,7 +252,7 @@ void MixerWorkerThread::processJobQueue( void ) // define a pause instruction for spinlock-loop - merely useful on // HyperThreading systems with just one physical core (e.g. Intel Atom) -#ifdef LMMS_HOST_X86_64 +#ifdef LMMS_HOST_X86 #define SPINLOCK_PAUSE() asm( "pause" ) #else #ifdef LMMS_HOST_X86_64