aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer/mixer_sse.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-26 15:35:05 -0800
committerChris Robinson <[email protected]>2018-12-26 15:35:05 -0800
commit4f253a935a14e49a77516a56e0d4c6d6177a56b6 (patch)
tree088b3171e77f6c7863c9bbe851b4f82f4a58fbe3 /Alc/mixer/mixer_sse.cpp
parentc5be03b51e8fd9bda3a46c345bdc945cfd965c2e (diff)
Handle HRTF coefficients and values by reference where possible
Diffstat (limited to 'Alc/mixer/mixer_sse.cpp')
-rw-r--r--Alc/mixer/mixer_sse.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/mixer/mixer_sse.cpp b/Alc/mixer/mixer_sse.cpp
index 09307697..5d82e5ae 100644
--- a/Alc/mixer/mixer_sse.cpp
+++ b/Alc/mixer/mixer_sse.cpp
@@ -79,16 +79,16 @@ const ALfloat *Resample_bsinc_SSE(const InterpState *state, const ALfloat *RESTR
}
-static inline void ApplyCoeffs(ALsizei Offset, ALfloat (*RESTRICT Values)[2],
- const ALsizei IrSize,
- const ALfloat (*RESTRICT Coeffs)[2],
- ALfloat left, ALfloat right)
+static inline void ApplyCoeffs(ALsizei Offset, ALfloat (&Values)[HRIR_LENGTH][2],
+ const ALsizei IrSize, const ALfloat (&Coeffs)[HRIR_LENGTH][2],
+ const ALfloat left, const ALfloat right)
{
const __m128 lrlr = _mm_setr_ps(left, right, left, right);
__m128 vals = _mm_setzero_ps();
__m128 coeffs;
- ASSUME(IrSize > 1);
+ ASSUME(IrSize >= 2);
+ ASSUME(&Values != &Coeffs);
ALsizei off{Offset&HRIR_MASK};
if((Offset&1))