diff options
author | Chris Robinson <[email protected]> | 2020-04-30 17:03:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-30 17:03:56 -0700 |
commit | 6bc3ae178e929cbb9f984b482b3a1732b14428dc (patch) | |
tree | 35b61c706988655d68493577004d84e8fe267caa /alc/mixer/mixer_sse.cpp | |
parent | 972869f76fe854a57e5cc2ffa38d58ddae9d95d2 (diff) |
Use a more efficient type for holding the IrSize
Diffstat (limited to 'alc/mixer/mixer_sse.cpp')
-rw-r--r-- | alc/mixer/mixer_sse.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/mixer/mixer_sse.cpp b/alc/mixer/mixer_sse.cpp index db60776d..2acfc0be 100644 --- a/alc/mixer/mixer_sse.cpp +++ b/alc/mixer/mixer_sse.cpp @@ -25,8 +25,8 @@ namespace { #define MLA4(x, y, z) _mm_add_ps(x, _mm_mul_ps(y, z)) -inline void ApplyCoeffs(float2 *RESTRICT Values, const ALuint IrSize, const HrirArray &Coeffs, - const float left, const float right) +inline void ApplyCoeffs(float2 *RESTRICT Values, const uint_fast32_t IrSize, + const HrirArray &Coeffs, const float left, const float right) { const __m128 lrlr{_mm_setr_ps(left, right, left, right)}; @@ -43,7 +43,7 @@ inline void ApplyCoeffs(float2 *RESTRICT Values, const ALuint IrSize, const Hrir imp0 = _mm_mul_ps(lrlr, coeffs); vals = _mm_add_ps(imp0, vals); _mm_storel_pi(reinterpret_cast<__m64*>(&Values[0][0]), vals); - ALuint td{(IrSize>>1) - 1}; + uint_fast32_t td{(IrSize>>1) - 1}; size_t i{1}; do { coeffs = _mm_load_ps(&Coeffs[i+1][0]); |