From 150586d7fef722da17b96697ca0c1f78b2d10eb4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 17 Apr 2018 22:50:50 -0700 Subject: Add an ASSUME macro that requires a true condition --- Alc/mixer/mixer_c.c | 2 ++ Alc/mixer/mixer_neon.c | 2 ++ Alc/mixer/mixer_sse.c | 2 ++ 3 files changed, 6 insertions(+) (limited to 'Alc/mixer') diff --git a/Alc/mixer/mixer_c.c b/Alc/mixer/mixer_c.c index e40c2cad..ee667671 100644 --- a/Alc/mixer/mixer_c.c +++ b/Alc/mixer/mixer_c.c @@ -65,6 +65,8 @@ const ALfloat *Resample_bsinc_C(const InterpState *state, const ALfloat *restric ALsizei j_f, pi, i; ALfloat pf, r; + ASSUME(m > 0); + src += state->bsinc.l; for(i = 0;i < dstlen;i++) { diff --git a/Alc/mixer/mixer_neon.c b/Alc/mixer/mixer_neon.c index 7f8dd1d4..e8a85f71 100644 --- a/Alc/mixer/mixer_neon.c +++ b/Alc/mixer/mixer_neon.c @@ -78,6 +78,8 @@ const ALfloat *Resample_bsinc_Neon(const InterpState *state, float32x4_t r4; ALfloat pf; + ASSUME(m > 0); + src += state->bsinc.l; for(i = 0;i < dstlen;i++) { diff --git a/Alc/mixer/mixer_sse.c b/Alc/mixer/mixer_sse.c index c9615c25..5c181c75 100644 --- a/Alc/mixer/mixer_sse.c +++ b/Alc/mixer/mixer_sse.c @@ -24,6 +24,8 @@ const ALfloat *Resample_bsinc_SSE(const InterpState *state, const ALfloat *restr ALfloat pf; __m128 r4; + ASSUME(m > 0); + src += state->bsinc.l; for(i = 0;i < dstlen;i++) { -- cgit v1.2.3