diff options
author | Chris Robinson <[email protected]> | 2015-10-17 09:59:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-10-17 09:59:26 -0700 |
commit | c4ba9d21dce745cafa3b54060a84c15a0ce7535f (patch) | |
tree | 0d5a5f5369bee4e332d8bd7a9b88e3f6ceaaeb20 /Alc/mixer_sse2.c | |
parent | d9e9a7b05fa2c863ab6a83064c3acf442a14c2ea (diff) |
Use the correct array indices for SSE register components
SSE uses reverse ordering, such that component 0 is the last in memory.
_mm_load_* and _mm_loadu_*, and the corresponding stores, do not change the
memory ordering.
Diffstat (limited to 'Alc/mixer_sse2.c')
-rw-r--r-- | Alc/mixer_sse2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer_sse2.c b/Alc/mixer_sse2.c index 6759f795..1787c196 100644 --- a/Alc/mixer_sse2.c +++ b/Alc/mixer_sse2.c @@ -63,7 +63,7 @@ const ALfloat *Resample_lerp32_SSE2(const ALfloat *src, ALuint frac, ALuint incr _mm_store_ps(pos_.f, _mm_castsi128_ps(pos4)); } - pos = pos_.i[0]; + pos = pos_.i[3]; frac = _mm_cvtsi128_si32(frac4); for(;i < numsamples;i++) |