aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse2.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-06-06 01:52:53 -0700
committerChris Robinson <[email protected]>2014-06-06 07:15:22 -0700
commit6d1622dc68073e08dff6149280096f8f1d9a0a2e (patch)
tree8f400ce980a7c191dbab223c0a4268118bdebe15 /Alc/mixer_sse2.c
parentfc0be88c0f8d3d8887edd2afac915840f4e3f5e4 (diff)
Move InitiatePositionArrays to mixer_defs.h
Diffstat (limited to 'Alc/mixer_sse2.c')
-rw-r--r--Alc/mixer_sse2.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/Alc/mixer_sse2.c b/Alc/mixer_sse2.c
index b1cfa598..0d85365e 100644
--- a/Alc/mixer_sse2.c
+++ b/Alc/mixer_sse2.c
@@ -27,27 +27,6 @@
#include "mixer_defs.h"
-static inline void InitiatePositionArrays(ALuint frac, ALuint increment,
- ALuint *frac_arr, ALuint *pos_arr)
-{
- ALuint frac_tmp;
-
- pos_arr[0] = 0;
- frac_arr[0] = frac;
-
- frac_tmp = frac_arr[0] + increment;
- pos_arr[1] = pos_arr[0] + (frac_tmp>>FRACTIONBITS);
- frac_arr[1] = frac_tmp & FRACTIONMASK;
-
- frac_tmp = frac_arr[1] + increment;
- pos_arr[2] = pos_arr[1] + (frac_tmp>>FRACTIONBITS);
- frac_arr[2] = frac_tmp & FRACTIONMASK;
-
- frac_tmp = frac_arr[2] + increment;
- pos_arr[3] = pos_arr[2] + (frac_tmp>>FRACTIONBITS);
- frac_arr[3] = frac_tmp & FRACTIONMASK;
-}
-
const ALfloat *Resample_lerp32_SSE2(const ALfloat *src, ALuint frac, ALuint increment,
ALfloat *restrict dst, ALuint numsamples)
{
@@ -60,7 +39,7 @@ const ALfloat *Resample_lerp32_SSE2(const ALfloat *src, ALuint frac, ALuint incr
ALuint pos;
ALuint i;
- InitiatePositionArrays(frac, increment, frac_.i, pos_.i);
+ InitiatePositionArrays(frac, increment, frac_.i, pos_.i, 4);
frac4 = _mm_castps_si128(_mm_load_ps(frac_.f));
pos4 = _mm_castps_si128(_mm_load_ps(pos_.f));