From 325a49975a762744638b56b6a7ddd2ccd40fda55 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 16 Jan 2017 08:54:30 -0800 Subject: Use ALsizei and ALint for sizes and offsets with resamplers and filters --- Alc/mixer_sse41.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'Alc/mixer_sse41.c') diff --git a/Alc/mixer_sse41.c b/Alc/mixer_sse41.c index 7a4db6cf..a531ca77 100644 --- a/Alc/mixer_sse41.c +++ b/Alc/mixer_sse41.c @@ -29,17 +29,17 @@ const ALfloat *Resample_lerp32_SSE41(const BsincState* UNUSED(state), const ALfloat *restrict src, - ALuint frac, ALuint increment, ALfloat *restrict dst, - ALuint numsamples) + ALuint frac, ALint increment, ALfloat *restrict dst, + ALsizei numsamples) { const __m128i increment4 = _mm_set1_epi32(increment*4); const __m128 fracOne4 = _mm_set1_ps(1.0f/FRACTIONONE); const __m128i fracMask4 = _mm_set1_epi32(FRACTIONMASK); - union { alignas(16) ALuint i[4]; float f[4]; } pos_; + union { alignas(16) ALint i[4]; float f[4]; } pos_; union { alignas(16) ALuint i[4]; float f[4]; } frac_; __m128i frac4, pos4; - ALuint pos; - ALuint i; + ALint pos; + ALsizei i; InitiatePositionArrays(frac, increment, frac_.i, pos_.i, 4); @@ -86,16 +86,16 @@ const ALfloat *Resample_lerp32_SSE41(const BsincState* UNUSED(state), const ALfl } const ALfloat *Resample_fir4_32_SSE41(const BsincState* UNUSED(state), const ALfloat *restrict src, - ALuint frac, ALuint increment, ALfloat *restrict dst, - ALuint numsamples) + ALuint frac, ALint increment, ALfloat *restrict dst, + ALsizei numsamples) { const __m128i increment4 = _mm_set1_epi32(increment*4); const __m128i fracMask4 = _mm_set1_epi32(FRACTIONMASK); - union { alignas(16) ALuint i[4]; float f[4]; } pos_; + union { alignas(16) ALint i[4]; float f[4]; } pos_; union { alignas(16) ALuint i[4]; float f[4]; } frac_; __m128i frac4, pos4; - ALuint pos; - ALuint i; + ALint pos; + ALsizei i; InitiatePositionArrays(frac, increment, frac_.i, pos_.i, 4); @@ -154,16 +154,16 @@ const ALfloat *Resample_fir4_32_SSE41(const BsincState* UNUSED(state), const ALf } const ALfloat *Resample_fir8_32_SSE41(const BsincState* UNUSED(state), const ALfloat *restrict src, - ALuint frac, ALuint increment, ALfloat *restrict dst, - ALuint numsamples) + ALuint frac, ALint increment, ALfloat *restrict dst, + ALsizei numsamples) { const __m128i increment4 = _mm_set1_epi32(increment*4); const __m128i fracMask4 = _mm_set1_epi32(FRACTIONMASK); - union { alignas(16) ALuint i[4]; float f[4]; } pos_; + union { alignas(16) ALint i[4]; float f[4]; } pos_; union { alignas(16) ALuint i[4]; float f[4]; } frac_; __m128i frac4, pos4; - ALuint pos; - ALuint i, j; + ALsizei i, j; + ALint pos; InitiatePositionArrays(frac, increment, frac_.i, pos_.i, 4); -- cgit v1.2.3