changeset 29645:7eb282a13214

Use ecx instead of ebx to avoid unnecessary issues with PIC.
author reimar
date Thu, 17 Sep 2009 19:03:31 +0000
parents 5eee87d44a4a
children 11b5e67d05a3
files libvo/aclib_template.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/aclib_template.c	Wed Sep 16 22:34:48 2009 +0000
+++ b/libvo/aclib_template.c	Thu Sep 17 19:03:31 2009 +0000
@@ -277,10 +277,10 @@
 			"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 @@
 	// 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 @@
 			" 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--)