From 4f253a935a14e49a77516a56e0d4c6d6177a56b6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 26 Dec 2018 15:35:05 -0800 Subject: Handle HRTF coefficients and values by reference where possible --- Alc/mixer/mixer_sse.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Alc/mixer/mixer_sse.cpp') 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)) -- cgit v1.2.3