diff options
author | Chris Robinson <[email protected]> | 2017-01-16 08:54:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-01-16 08:54:30 -0800 |
commit | 325a49975a762744638b56b6a7ddd2ccd40fda55 (patch) | |
tree | 786d37a90accef04e019abb824cdf13055098112 /Alc/mixer_sse3.c | |
parent | cbb796bf31cd3acfba0ce35e71a51d03e7e26021 (diff) |
Use ALsizei and ALint for sizes and offsets with resamplers and filters
Diffstat (limited to 'Alc/mixer_sse3.c')
-rw-r--r-- | Alc/mixer_sse3.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Alc/mixer_sse3.c b/Alc/mixer_sse3.c index 66005e53..34121d71 100644 --- a/Alc/mixer_sse3.c +++ b/Alc/mixer_sse3.c @@ -32,16 +32,16 @@ const ALfloat *Resample_fir4_32_SSE3(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); @@ -97,16 +97,16 @@ const ALfloat *Resample_fir4_32_SSE3(const BsincState* UNUSED(state), const ALfl } const ALfloat *Resample_fir8_32_SSE3(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); |