src/audio/SDL_audiotypecvt.c
changeset 13027 69cc269eec53
parent 13026 33b64882e322
child 13200 057a3fe53d5a
     1.1 --- a/src/audio/SDL_audiotypecvt.c	Mon Aug 19 20:35:02 2019 +0200
     1.2 +++ b/src/audio/SDL_audiotypecvt.c	Mon Aug 19 21:23:47 2019 +0200
     1.3 @@ -482,7 +482,7 @@
     1.4      if ((((size_t) src) & 15) == 0) {
     1.5          /* Aligned! Do SSE blocks as long as we have 16 bytes available. */
     1.6          const __m128 divby32768 = _mm_set1_ps(DIVBY32768);
     1.7 -        const __m128 minus1 = _mm_set1_ps(1.0f);
     1.8 +        const __m128 minus1 = _mm_set1_ps(-1.0f);
     1.9          while (i >= 8) {   /* 8 * 16-bit */
    1.10              const __m128i ints = _mm_load_si128((__m128i const *) src);  /* get 8 sint16 into an XMM register. */
    1.11              /* treat as int32, shift left to clear every other sint16, then back right with zero-extend. Now sint32. */