From d1f72624a749bd9c2a17ddeb303703a78f53d4a5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 31 Jul 2019 10:28:04 -0700 Subject: Fix a couple ASSUME statements --- alc/mixer/mixer_sse2.cpp | 2 +- alc/mixer/mixer_sse41.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/mixer') diff --git a/alc/mixer/mixer_sse2.cpp b/alc/mixer/mixer_sse2.cpp index b5d00106..b1c67f09 100644 --- a/alc/mixer/mixer_sse2.cpp +++ b/alc/mixer/mixer_sse2.cpp @@ -35,7 +35,7 @@ const ALfloat *Resample_(const InterpState*, const ALfloat *RES const __m128 fracOne4{_mm_set1_ps(1.0f/FRACTIONONE)}; const __m128i fracMask4{_mm_set1_epi32(FRACTIONMASK)}; - ASSUME(frac > 0); + ASSUME(frac >= 0); ASSUME(increment > 0); ASSUME(dstlen >= 0); diff --git a/alc/mixer/mixer_sse41.cpp b/alc/mixer/mixer_sse41.cpp index 7efbda7b..077be44c 100644 --- a/alc/mixer/mixer_sse41.cpp +++ b/alc/mixer/mixer_sse41.cpp @@ -36,7 +36,7 @@ const ALfloat *Resample_(const InterpState*, const ALfloat *RES const __m128 fracOne4{_mm_set1_ps(1.0f/FRACTIONONE)}; const __m128i fracMask4{_mm_set1_epi32(FRACTIONMASK)}; - ASSUME(frac > 0); + ASSUME(frac >= 0); ASSUME(increment > 0); ASSUME(dstlen >= 0); -- cgit v1.2.3