Don't truncate odd IR sizes with SSE

This commit is contained in:
Chris Robinson 2020-04-30 20:33:35 -07:00
parent 6bc3ae178e
commit ae09e1f60c

View File

@ -43,7 +43,7 @@ inline void ApplyCoeffs(float2 *RESTRICT Values, const uint_fast32_t IrSize,
imp0 = _mm_mul_ps(lrlr, coeffs);
vals = _mm_add_ps(imp0, vals);
_mm_storel_pi(reinterpret_cast<__m64*>(&Values[0][0]), vals);
uint_fast32_t td{(IrSize>>1) - 1};
uint_fast32_t td{((IrSize+1)>>1) - 1};
size_t i{1};
do {
coeffs = _mm_load_ps(&Coeffs[i+1][0]);