[Ffmpeg-devel] gcc4 support & MMX fixups (from Debian)

Mike Melanson mike
Sun Jan 8 21:23:26 CET 2006


A xine developer just committed this and a few other fixes to the xine 
tree. Are they worth rolling into the official tree?

-- 
	-Mike Melanson


-------- Original Message --------
Subject: [xine-cvs] CVS: xine-lib/src/libffmpeg/libavcodec/i386 
dsputil_mmx.c,1.23,1.23.2.1
Date: Sun, 08 Jan 2006 07:21:47 -0800
From: Darren Salt <dsalt at users.sourceforge.net>
To: xine-cvslog at lists.sourceforge.net

Update of /cvsroot/xine/xine-lib/src/libffmpeg/libavcodec/i386
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1237/src/libffmpeg/libavcodec/i386

Modified Files:
       Tag: xine-1_0
	dsputil_mmx.c
Log Message:
gcc4 support & MMX fixups (from Debian).


Index: dsputil_mmx.c
===================================================================
RCS file: 
/cvsroot/xine/xine-lib/src/libffmpeg/libavcodec/i386/dsputil_mmx.c,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -r1.23 -r1.23.2.1
--- dsputil_mmx.c	30 May 2004 19:24:23 -0000	1.23
+++ dsputil_mmx.c	8 Jan 2006 15:21:45 -0000	1.23.2.1
@@ -643,26 +643,22 @@
          "punpcklwd %%mm0, %%mm1		\n\t"
          "punpckhwd %%mm4, %%mm3		\n\t"
          "punpckhwd %%mm0, %%mm6		\n\t"
-        "movd %%mm5, %0			\n\t"
+        "movd %%mm5, (%0)		\n\t"
          "punpckhdq %%mm5, %%mm5		\n\t"
-        "movd %%mm5, %1			\n\t"
-        "movd %%mm3, %2			\n\t"
+        "movd %%mm5, (%0,%2)		\n\t"
+        "movd %%mm3, (%0,%2,2)		\n\t"
          "punpckhdq %%mm3, %%mm3		\n\t"
-        "movd %%mm3, %3			\n\t"
-        "movd %%mm1, %4			\n\t"
+        "movd %%mm3, (%0,%3)		\n\t"
+        "movd %%mm1, (%1)		\n\t"
          "punpckhdq %%mm1, %%mm1		\n\t"
-        "movd %%mm1, %5			\n\t"
-        "movd %%mm6, %6			\n\t"
+        "movd %%mm1, (%1,%2)		\n\t"
+        "movd %%mm6, (%1,%2,2)		\n\t"
          "punpckhdq %%mm6, %%mm6		\n\t"
-        "movd %%mm6, %7			\n\t"
-        : "=m" (*(uint32_t*)(src + 0*stride)),
-          "=m" (*(uint32_t*)(src + 1*stride)),
-          "=m" (*(uint32_t*)(src + 2*stride)),
-          "=m" (*(uint32_t*)(src + 3*stride)),
-          "=m" (*(uint32_t*)(src + 4*stride)),
-          "=m" (*(uint32_t*)(src + 5*stride)),
-          "=m" (*(uint32_t*)(src + 6*stride)),
-          "=m" (*(uint32_t*)(src + 7*stride))
+        "movd %%mm6, (%1,%3)		\n\t"
+	:: "r" (src),
+	   "r" (src + 4*stride),
+	   "r" ((long)   stride ),
+	   "r" ((long)(3*stride))
      );
  }




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog





More information about the ffmpeg-devel mailing list