src/audio/SDL_audiotypecvt.c
changeset 11873 96157e099383
parent 11811 5d94cb6b24d3
child 11987 0c284754e25b
equal deleted inserted replaced
11872:e917e911dab6 11873:96157e099383
   507     if (cvt->filters[++cvt->filter_index]) {
   507     if (cvt->filters[++cvt->filter_index]) {
   508         cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
   508         cvt->filters[cvt->filter_index](cvt, AUDIO_F32SYS);
   509     }
   509     }
   510 }
   510 }
   511 
   511 
       
   512 #if defined(__GNUC__) && (__GNUC__ < 4)
       
   513 /* these were added as of gcc-4.0: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19418 */
       
   514 static inline __m128 _mm_castsi128_ps(__m128i __A) {
       
   515   return (__m128) __A;
       
   516 }
       
   517 static inline __m128i _mm_castps_si128(__m128 __A) {
       
   518   return (__m128i) __A;
       
   519 }
       
   520 #endif
       
   521 
   512 static void SDLCALL
   522 static void SDLCALL
   513 SDL_Convert_S32_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
   523 SDL_Convert_S32_to_F32_SSE2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
   514 {
   524 {
   515     const Sint32 *src = (const Sint32 *) cvt->buf;
   525     const Sint32 *src = (const Sint32 *) cvt->buf;
   516     float *dst = (float *) cvt->buf;
   526     float *dst = (float *) cvt->buf;