[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec/i386 idct_mmx.c,1.7,1.8

Michael Niedermayer CVS michael
Wed Jun 1 10:43:42 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec/i386
In directory mail:/var2/tmp/cvs-serv30523/libavcodec/i386

Modified Files:
	idct_mmx.c 
Log Message:
avoid one transpose (730->680 dezicycles on duron)


Index: idct_mmx.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/i386/idct_mmx.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- idct_mmx.c	1 Jun 2005 04:51:46 -0000	1.7
+++ idct_mmx.c	1 Jun 2005 08:43:40 -0000	1.8
@@ -673,14 +673,11 @@
         /* mm2=s02+s13  mm3=s02-s13  mm4=d02+d13  mm1=d02-d13 */
         IDCT4_1D( %%mm3, %%mm2, %%mm1, %%mm0, %%mm4, %%mm5 )
 
-        /* in: 2,4,1,3  out: 2,3,0,1 */
-        TRANSPOSE4( %%mm2, %%mm4, %%mm1, %%mm3, %%mm0 )
-
         "pxor %%mm7, %%mm7    \n\t"
     :: "m"(ff_pw_32));
 
-    STORE_DIFF_4P( %%mm2, %%mm4, %%mm7, &dst[0*stride] );
-    STORE_DIFF_4P( %%mm3, %%mm4, %%mm7, &dst[1*stride] );
-    STORE_DIFF_4P( %%mm0, %%mm4, %%mm7, &dst[2*stride] );
-    STORE_DIFF_4P( %%mm1, %%mm4, %%mm7, &dst[3*stride] );
+    STORE_DIFF_4P( %%mm2, %%mm0, %%mm7, &dst[0*stride] );
+    STORE_DIFF_4P( %%mm4, %%mm0, %%mm7, &dst[1*stride] );
+    STORE_DIFF_4P( %%mm1, %%mm0, %%mm7, &dst[2*stride] );
+    STORE_DIFF_4P( %%mm3, %%mm0, %%mm7, &dst[3*stride] );
 }





More information about the ffmpeg-cvslog mailing list