diff options
Diffstat (limited to 'Alc/mixer')
-rw-r--r-- | Alc/mixer/defs.h | 2 | ||||
-rw-r--r-- | Alc/mixer/mixer_neon.c | 3 | ||||
-rw-r--r-- | Alc/mixer/mixer_sse2.c | 3 | ||||
-rw-r--r-- | Alc/mixer/mixer_sse41.c | 3 |
4 files changed, 4 insertions, 7 deletions
diff --git a/Alc/mixer/defs.h b/Alc/mixer/defs.h index fe19cef4..8f6e3755 100644 --- a/Alc/mixer/defs.h +++ b/Alc/mixer/defs.h @@ -62,7 +62,7 @@ void MixRow_SSE(ALfloat *OutBuffer, const ALfloat *Gains, ALsizei InPos, ALsizei BufferSize); /* SSE resamplers */ -inline void InitiatePositionArrays(ALsizei frac, ALint increment, ALsizei *restrict frac_arr, ALint *restrict pos_arr, ALsizei size) +inline void InitiatePositionArrays(ALsizei frac, ALint increment, ALsizei *restrict frac_arr, ALsizei *restrict pos_arr, ALsizei size) { ALsizei i; diff --git a/Alc/mixer/mixer_neon.c b/Alc/mixer/mixer_neon.c index 0b8996fd..ca274b07 100644 --- a/Alc/mixer/mixer_neon.c +++ b/Alc/mixer/mixer_neon.c @@ -17,8 +17,7 @@ const ALfloat *Resample_lerp_Neon(const InterpState* UNUSED(state), const int32x4_t increment4 = vdupq_n_s32(increment*4); const float32x4_t fracOne4 = vdupq_n_f32(1.0f/FRACTIONONE); const int32x4_t fracMask4 = vdupq_n_s32(FRACTIONMASK); - alignas(16) ALint pos_[4]; - alignas(16) ALsizei frac_[4]; + alignas(16) ALsizei pos_[4], frac_[4]; int32x4_t pos4, frac4; ALsizei todo, pos, i; diff --git a/Alc/mixer/mixer_sse2.c b/Alc/mixer/mixer_sse2.c index 629e0ec7..9cbaeb0a 100644 --- a/Alc/mixer/mixer_sse2.c +++ b/Alc/mixer/mixer_sse2.c @@ -34,8 +34,7 @@ const ALfloat *Resample_lerp_SSE2(const InterpState* UNUSED(state), const __m128i increment4 = _mm_set1_epi32(increment*4); const __m128 fracOne4 = _mm_set1_ps(1.0f/FRACTIONONE); const __m128i fracMask4 = _mm_set1_epi32(FRACTIONMASK); - ALint pos_[4]; - ALsizei frac_[4]; + alignas(16) ALsizei pos_[4], frac_[4]; __m128i frac4, pos4; ALsizei todo, pos, i; diff --git a/Alc/mixer/mixer_sse41.c b/Alc/mixer/mixer_sse41.c index 128acadf..e92a3dd0 100644 --- a/Alc/mixer/mixer_sse41.c +++ b/Alc/mixer/mixer_sse41.c @@ -35,8 +35,7 @@ const ALfloat *Resample_lerp_SSE41(const InterpState* UNUSED(state), const __m128i increment4 = _mm_set1_epi32(increment*4); const __m128 fracOne4 = _mm_set1_ps(1.0f/FRACTIONONE); const __m128i fracMask4 = _mm_set1_epi32(FRACTIONMASK); - ALint pos_[4]; - ALsizei frac_[4]; + alignas(16) ALsizei pos_[4], frac_[4]; __m128i frac4, pos4; ALsizei todo, pos, i; |