aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-09 04:09:31 -0700
committerChris Robinson <[email protected]>2012-09-09 04:09:31 -0700
commit9f208417dfd082b2359bb233d5e726e76758562b (patch)
tree68489ed80c8d425f930ca292a624d9e98cb2f3e8
parentf1ce13999725ac068f8d3a2126708bc11c10aa58 (diff)
Use the right method to clear a __m128 to 0
-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 cc3b52cc..443209bc 100644
--- a/Alc/mixer_sse.c
+++ b/Alc/mixer_sse.c
@@ -19,7 +19,7 @@ static __inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*RESTRICT Values)[2
ALfloat left, ALfloat right)
{
const __m128 lrlr = { left, right, left, right };
- __m128 vals = { 0.0f, 0.0f, 0.0f, 0.0f };
+ __m128 vals = _mm_setzero_ps();
__m128 coeffs, coeffstep;
ALuint c;
for(c = 0;c < HRIR_LENGTH;c += 2)
@@ -46,7 +46,7 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
ALfloat left, ALfloat right)
{
const __m128 lrlr = { left, right, left, right };
- __m128 vals = { 0.0f, 0.0f, 0.0f, 0.0f };
+ __m128 vals = _mm_setzero_ps();
__m128 coeffs;
ALuint c;
for(c = 0;c < HRIR_LENGTH;c += 2)