Ticket #8740: t8740_remove_sse3_instructions.diff

File t8740_remove_sse3_instructions.diff, 1.7 KB (added by Janne Grunau, 14 years ago)
  • mythtv/libs/libmythsoundtouch/sse_gcc.cpp

    diff --git a/mythtv/libs/libmythsoundtouch/sse_gcc.cpp b/mythtv/libs/libmythsoundtouch/sse_gcc.cpp
    index 4845199..f632a21 100644
    a b double TDStretchSSE2::calcCrossCorrMulti(const float *mPos, const float *cPos) c 
    3535        "addps      %%xmm3, %%xmm7      \n\t"
    3636        "sub        $1,     %%ecx       \n\t"
    3737        "jnz        1b                  \n\t"
    38         "haddps     %%xmm7, %%xmm7      \n\t"
     38        "movaps     %%xmm7, %%xmm6      \n\t"
     39        "shufps     $0x4e,  %%xmm7, %%xmm6  \n\t"
     40        "addps      %%xmm6, %%xmm7      \n\t"
    3941        "cvtps2pd   %%xmm7, %%xmm7      \n\t"
    40         "haddpd     %%xmm7, %%xmm7      \n\t"
     42        "movapd     %%xmm7, %%xmm6      \n\t"
     43        "shufpd     $0x01,  %%xmm7, %%xmm6  \n\t"
     44        "addpd      %%xmm6, %%xmm7      \n\t"
    4145        "movsd      %%xmm7, %0          \n\t"
    4246        :"=m"(corr),"+r"(mp), "+r"(cp)
    4347        :"c"(loops)
    double TDStretchSSE2::calcCrossCorrStereo(const float *mPos, const float *cPos) 
    7781        "addps      %%xmm3, %%xmm7      \n\t"
    7882        "sub        $1,     %%ecx       \n\t"
    7983        "jnz        1b                  \n\t"
    80         "haddps     %%xmm7, %%xmm7      \n\t"
     84        "movaps     %%xmm7, %%xmm6      \n\t"
     85        "shufps     $0x4e,  %%xmm7, %%xmm6  \n\t"
     86        "addps      %%xmm6, %%xmm7      \n\t"
    8187        "cvtps2pd   %%xmm7, %%xmm7      \n\t"
    82         "haddpd     %%xmm7, %%xmm7      \n\t"
     88        "movapd     %%xmm7, %%xmm6      \n\t"
     89        "shufpd     $0x01,  %%xmm7, %%xmm6  \n\t"
     90        "addpd      %%xmm6, %%xmm7      \n\t"
    8391        "movsd      %%xmm7, %0          \n\t"
    8492        :"=m"(corr),"+r"(mp), "+r"(cp)
    8593        :"c"(loops)