diff options
author | Chris Robinson <[email protected]> | 2019-09-17 18:38:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-17 18:38:46 -0700 |
commit | aca9f4e09586f4b1859bb28c5712f39c1b95570e (patch) | |
tree | 214ef2e4e5bdcb9330272e501cccc7560dee8ffa /alc/mixer/mixer_sse.cpp | |
parent | 1da75126283cbd0f7ed3835a34c6e34e8dcfc32a (diff) |
Make the bsinc l and m coefficients unsigned
Diffstat (limited to 'alc/mixer/mixer_sse.cpp')
-rw-r--r-- | alc/mixer/mixer_sse.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/alc/mixer/mixer_sse.cpp b/alc/mixer/mixer_sse.cpp index d47a0e66..9bb3bb8a 100644 --- a/alc/mixer/mixer_sse.cpp +++ b/alc/mixer/mixer_sse.cpp @@ -19,9 +19,7 @@ const ALfloat *Resample_<BSincTag,SSETag>(const InterpState *state, const ALfloa { const ALfloat *const filter{state->bsinc.filter}; const __m128 sf4{_mm_set1_ps(state->bsinc.sf)}; - const ptrdiff_t m{state->bsinc.m}; - - ASSUME(m > 0); + const size_t m{state->bsinc.m}; src -= state->bsinc.l; for(float &out_sample : dst) @@ -41,7 +39,7 @@ const ALfloat *Resample_<BSincTag,SSETag>(const InterpState *state, const ALfloa const float *scd{fil + m}; const float *phd{scd + m}; const float *spd{phd + m}; - ptrdiff_t td{m >> 2}; + size_t td{m >> 2}; size_t j{0u}; #define MLA4(x, y, z) _mm_add_ps(x, _mm_mul_ps(y, z)) |