OSDN Git Service

fdct_mmx: add xmm registers to clobber list
authorRamiro Polla <ramiro.polla@gmail.com>
Sun, 31 Oct 2010 13:45:04 +0000 (13:45 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sun, 31 Oct 2010 13:45:04 +0000 (13:45 +0000)
Originally committed as revision 25609 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/x86/fdct_mmx.c

index 6e52285..e55d306 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 #include "libavutil/common.h"
+#include "libavutil/x86_cpu.h"
 #include "libavcodec/dsputil.h"
 
 //////////////////////////////////////////////////////////////////////
@@ -431,6 +432,8 @@ static av_always_inline void fdct_row_sse2(const int16_t *in, int16_t *out)
         FDCT_ROW_SSE2(80)
         :
         : "r" (in), "r" (tab_frw_01234567_sse2.tab_frw_01234567_sse2), "r" (fdct_r_row_sse2.fdct_r_row_sse2), "i" (SHIFT_FRW_ROW), "r" (out)
+          XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm2", "%xmm3",
+                            "%xmm4", "%xmm5", "%xmm6", "%xmm7")
     );
 }