aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer/mixer_sse41.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-04-18 20:39:52 -0700
committerChris Robinson <[email protected]>2018-04-18 20:39:52 -0700
commitf96a8fe369e317a6203bec5e814761fe8a12531e (patch)
tree240fae4a5a1072e3721e6976058bc50d1a766c9f /Alc/mixer/mixer_sse41.c
parent150586d7fef722da17b96697ca0c1f78b2d10eb4 (diff)
Add some ASSUME statements that ensure mixing at least 1 sample
Diffstat (limited to 'Alc/mixer/mixer_sse41.c')
-rw-r--r--Alc/mixer/mixer_sse41.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/mixer/mixer_sse41.c b/Alc/mixer/mixer_sse41.c
index 85fd0f5e..98a3ef74 100644
--- a/Alc/mixer/mixer_sse41.c
+++ b/Alc/mixer/mixer_sse41.c
@@ -41,6 +41,8 @@ const ALfloat *Resample_lerp_SSE41(const InterpState* UNUSED(state),
ALint pos;
ALsizei i;
+ ASSUME(numsamples > 0);
+
InitiatePositionArrays(frac, increment, frac_.i, pos_.i, 4);
frac4 = _mm_castps_si128(_mm_load_ps(frac_.f));