src/audio/SDL_audiotypecvt.c
changeset 12056 523e803a0192
parent 11995 b34d86386ee1
child 12265 dfa5cea01a56
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Sun Jul 01 19:50:00 2018 +0300
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Mon Jul 02 03:53:57 2018 +0300
     1.3 @@ -533,7 +533,7 @@
     1.4          const __m128i *mmsrc = (const __m128i *) src;
     1.5          while (i >= 4) {   /* 4 * sint32 */
     1.6              /* shift out lowest bits so int fits in a float32. Small precision loss, but much faster. */
     1.7 -            _mm_store_ps(dst, _mm_mul_ps(_mm_cvtepi32_ps(_mm_srli_epi32(_mm_load_si128(mmsrc), 8)), divby8388607));
     1.8 +            _mm_store_ps(dst, _mm_mul_ps(_mm_cvtepi32_ps(_mm_srai_epi32(_mm_load_si128(mmsrc), 8)), divby8388607));
     1.9              i -= 4; mmsrc++; dst += 4;
    1.10          }
    1.11          src = (const Sint32 *) mmsrc;