Use the right method to clear a __m128 to 0

This commit is contained in:
Chris Robinson
2012-09-09 04:09:31 -07:00
parent f1ce139997
commit 9f208417df
+2 -2
View File
@@ -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)