aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-21 21:20:44 -0700
committerChris Robinson <[email protected]>2014-05-21 21:20:44 -0700
commitecdfcdbfa579f07cd91f6796ee8579a470aa68b3 (patch)
treea7538d57052aa7b77cf4bf8fe4c2cda178d8a534 /Alc/mixer_sse.c
parent2e38de349c8bf8e01ff40a8986b0c506645a1163 (diff)
The lower value of the gain vector contains the closest target value
Diffstat (limited to 'Alc/mixer_sse.c')
-rw-r--r--Alc/mixer_sse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c
index d26866a9..c4e1fdf5 100644
--- a/Alc/mixer_sse.c
+++ b/Alc/mixer_sse.c
@@ -170,7 +170,7 @@ void MixDirect_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *dat
_mm_store_ps(&OutBuffer[c][OutPos+pos], dry4);
pos += 4;
} while(BufferSize-pos > 3 && Counter-pos > 3);
- DrySend = _mm_cvtss_f32(_mm_shuffle_ps(gain, gain, _MM_SHUFFLE(3, 3, 3, 3)));
+ DrySend = _mm_cvtss_f32(gain);
}
/* Mix with applying left over gain steps that aren't aligned multiples of 4. */
for(;pos < BufferSize && pos < Counter;pos++)
@@ -231,7 +231,7 @@ void MixSend_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
_mm_store_ps(&OutBuffer[0][OutPos+pos], dry4);
pos += 4;
} while(BufferSize-pos > 3 && Counter-pos > 3);
- WetGain = _mm_cvtss_f32(_mm_shuffle_ps(gain, gain, _MM_SHUFFLE(3, 3, 3, 3)));
+ WetGain = _mm_cvtss_f32(gain);
}
for(;pos < BufferSize && pos < Counter;pos++)
{