summaryrefslogtreecommitdiff
path: root/packages/libxine/libxine-1.0.0-rc5/cpu.patch
blob: a2444d9ed31b707349a46920af680da510b93b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
For those x86 folks - ebx is used by PIC and shouldn't be used by
anyone else

--- xine-lib-1-rc5/src/post/goom/zoom_filter_xmmx.c	2003-09-15 15:53:53.000000000 -0700
+++ xine-lib-1-rc5.new/src/post/goom/zoom_filter_xmmx.c	2004-06-29 15:25:45.763268896 -0700
@@ -108,23 +108,23 @@
 			 * post : mm3 & mm4 : coefs for this position
 			 *              mm1 : X vector [0|X]
 			 *
-			 * modif : eax,ebx
+			 * modif : eax,ecx
 			 */
 			__asm__ __volatile__ (
-				"movd %%mm0,%%ebx\n"
+				"movd %%mm0,%%ecx\n"
 				"movq %%mm0,%%mm1\n"
 
-				"andl $15,%%ebx\n"
+				"andl $15,%%ecx\n"
 				"psrlq $32,%%mm1\n"
 
-				"shll $6,%%ebx\n"
+				"shll $6,%%ecx\n"
 				"movd %%mm1,%%eax\n"
 
-				"addl %0,%%ebx\n"
+				"addl %0,%%ecx\n"
 				"andl $15,%%eax\n"
 
-				"movd (%%ebx,%%eax,4),%%mm3\n"
-				::"X"(precalCoef):"eax","ebx");
+				"movd (%%ecx,%%eax,4),%%mm3\n"
+				::"X"(precalCoef):"eax","ecx");
 
 			/*
 			 * extraction des coefficients...
@@ -152,7 +152,7 @@
 			 * post : mm0 : expix1[position]
 			 *        mm2 : expix1[position+largeur]
 			 *
-			 * modif : eax,ebx
+			 * modif : eax,ecx
 			 */
 			psrld_i2r (PERTEDEC,mm0);
 			psrld_i2r (PERTEDEC,mm1);
@@ -161,23 +161,23 @@
 				/*^*/ "movq %%mm3,%%mm5\n"       /*^*/
 
 				"mull %1\n"
-				"movd %%mm0,%%ebx\n"
+				"movd %%mm0,%%ecx\n"
 				/*^*/ "punpcklbw %%mm5, %%mm3\n" /*^*/
 
-				"addl %%ebx,%%eax\n"
+				"addl %%ecx,%%eax\n"
 				/*^*/ "movq %%mm3,%%mm4\n"       /*^*/
 				/*^*/ "movq %%mm3,%%mm5\n"       /*^*/
 
-				"movl %0,%%ebx\n"
+				"movl %0,%%ecx\n"
 				/*^*/ "punpcklbw %%mm5,%%mm3\n"  /*^*/
 
-				"movq (%%ebx,%%eax,4),%%mm0\n"
+				"movq (%%ecx,%%eax,4),%%mm0\n"
 				/*^*/ "punpckhbw %%mm5,%%mm4\n"  /*^*/
 
 				"addl %1,%%eax\n"
-				"movq (%%ebx,%%eax,4),%%mm2\n"
+				"movq (%%ecx,%%eax,4),%%mm2\n"
 				
-				: : "X"(expix1), "X"(prevX):"eax","ebx"
+				: : "X"(expix1), "X"(prevX):"eax","ecx"
 				);
 
 			/*