[FFmpeg-cvslog] r25607 - in trunk/libavcodec/x86: mpegvideo_mmx.c mpegvideo_mmx_template.c

ramiro subversion
Sun Oct 31 14:15:16 CET 2010


Author: ramiro
Date: Sun Oct 31 14:15:16 2010
New Revision: 25607

Log:
mpegvideo_mmx: add xmm registers to clobber list

Modified:
   trunk/libavcodec/x86/mpegvideo_mmx.c
   trunk/libavcodec/x86/mpegvideo_mmx_template.c

Modified: trunk/libavcodec/x86/mpegvideo_mmx.c
==============================================================================
--- trunk/libavcodec/x86/mpegvideo_mmx.c	Sun Oct 31 14:13:53 2010	(r25606)
+++ trunk/libavcodec/x86/mpegvideo_mmx.c	Sun Oct 31 14:15:16 2010	(r25607)
@@ -581,6 +581,8 @@ static void  denoise_dct_sse2(MpegEncCon
             " jb 1b                             \n\t"
         : "+r" (block), "+r" (sum), "+r" (offset)
         : "r"(block+64)
+          XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm2", "%xmm3",
+                            "%xmm4", "%xmm5", "%xmm6", "%xmm7")
     );
 }
 

Modified: trunk/libavcodec/x86/mpegvideo_mmx_template.c
==============================================================================
--- trunk/libavcodec/x86/mpegvideo_mmx_template.c	Sun Oct 31 14:13:53 2010	(r25606)
+++ trunk/libavcodec/x86/mpegvideo_mmx_template.c	Sun Oct 31 14:15:16 2010	(r25607)
@@ -180,6 +180,8 @@ static int RENAME(dct_quantize)(MpegEncC
             : "+a" (last_non_zero_p1)
             : "r" (block+64), "r" (qmat), "r" (bias),
               "r" (inv_zigzag_direct16+64), "r" (temp_block+64)
+              XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm2", "%xmm3",
+                                "%xmm4", "%xmm5", "%xmm6", "%xmm7")
         );
     }else{ // FMT_H263
         __asm__ volatile(
@@ -212,6 +214,8 @@ static int RENAME(dct_quantize)(MpegEncC
             : "+a" (last_non_zero_p1)
             : "r" (block+64), "r" (qmat+64), "r" (bias+64),
               "r" (inv_zigzag_direct16+64), "r" (temp_block+64)
+              XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm2", "%xmm3",
+                                "%xmm4", "%xmm5", "%xmm6", "%xmm7")
         );
     }
     __asm__ volatile(



More information about the ffmpeg-cvslog mailing list