[MPlayer-cvslog] r29687 - trunk/libvo/aclib_template.c

reimar subversion at mplayerhq.hu
Thu Sep 17 21:03:32 CEST 2009


Author: reimar
Date: Thu Sep 17 21:03:31 2009
New Revision: 29687

Log:
Use ecx instead of ebx to avoid unnecessary issues with PIC.

Modified:
   trunk/libvo/aclib_template.c

Modified: trunk/libvo/aclib_template.c
==============================================================================
--- trunk/libvo/aclib_template.c	Thu Sep 17 00:34:48 2009	(r29686)
+++ trunk/libvo/aclib_template.c	Thu Sep 17 21:03:31 2009	(r29687)
@@ -277,10 +277,10 @@ static void * RENAME(fast_memcpy)(void *
 			"xor %%"REG_a", %%"REG_a"	\n\t"
 			ASMALIGN(4)
 			"1:			\n\t"
-				"movl (%0, %%"REG_a"), %%ebx 	\n\t"
-				"movl 32(%0, %%"REG_a"), %%ebx 	\n\t"
-				"movl 64(%0, %%"REG_a"), %%ebx 	\n\t"
-				"movl 96(%0, %%"REG_a"), %%ebx 	\n\t"
+				"movl (%0, %%"REG_a"), %%ecx 	\n\t"
+				"movl 32(%0, %%"REG_a"), %%ecx 	\n\t"
+				"movl 64(%0, %%"REG_a"), %%ecx 	\n\t"
+				"movl 96(%0, %%"REG_a"), %%ecx 	\n\t"
 				"add $128, %%"REG_a"		\n\t"
 				"cmp %3, %%"REG_a"		\n\t"
 				" jb 1b				\n\t"
@@ -313,10 +313,10 @@ static void * RENAME(fast_memcpy)(void *
 	// a few percent speedup on out of order executing CPUs
 			"mov %5, %%"REG_a"		\n\t"
 				"2:			\n\t"
-				"movl (%0), %%ebx	\n\t"
-				"movl (%0), %%ebx	\n\t"
-				"movl (%0), %%ebx	\n\t"
-				"movl (%0), %%ebx	\n\t"
+				"movl (%0), %%ecx	\n\t"
+				"movl (%0), %%ecx	\n\t"
+				"movl (%0), %%ecx	\n\t"
+				"movl (%0), %%ecx	\n\t"
 				"dec %%"REG_a"		\n\t"
 				" jnz 2b		\n\t"
 #endif
@@ -329,7 +329,7 @@ static void * RENAME(fast_memcpy)(void *
 			" jae 1b		\n\t"
 				: "+r" (from), "+r" (to), "+r" (i)
 				: "r" ((long)BLOCK_SIZE), "i" (BLOCK_SIZE/64), "i" ((long)CONFUSION_FACTOR)
-				: "%"REG_a, "%ebx"
+				: "%"REG_a, "%ecx"
 		);
 
 	for(; i>0; i--)


More information about the MPlayer-cvslog mailing list