diff options
author | Chris Robinson <[email protected]> | 2020-12-12 20:21:56 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-12 23:41:38 -0800 |
commit | 225d42538d2397e2698b9edb359c360dde3d00a8 (patch) | |
tree | 33baffc701058760ff3fc3a068cb0e164ab58ccc /core/mixer/mixer_sse.cpp | |
parent | bb597546e1db888120b0da5c23dbf249a281e6aa (diff) |
Be more consistent with size_t
Diffstat (limited to 'core/mixer/mixer_sse.cpp')
-rw-r--r-- | core/mixer/mixer_sse.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/mixer/mixer_sse.cpp b/core/mixer/mixer_sse.cpp index 85b2f1ce..ff722c19 100644 --- a/core/mixer/mixer_sse.cpp +++ b/core/mixer/mixer_sse.cpp @@ -22,8 +22,8 @@ constexpr uint FracPhaseDiffOne{1 << FracPhaseBitDiff}; #define MLA4(x, y, z) _mm_add_ps(x, _mm_mul_ps(y, z)) -inline void ApplyCoeffs(float2 *RESTRICT Values, const uint_fast32_t IrSize, - const HrirArray &Coeffs, const float left, const float right) +inline void ApplyCoeffs(float2 *RESTRICT Values, const size_t IrSize, const HrirArray &Coeffs, + const float left, const float right) { const __m128 lrlr{_mm_setr_ps(left, right, left, right)}; @@ -40,7 +40,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) - 1}; + size_t td{((IrSize+1)>>1) - 1}; size_t i{1}; do { coeffs = _mm_load_ps(&Coeffs[i+1][0]); |