summary refs log tree commit diff
path: root/sysdeps/i386/mul_1.S
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-06-26 18:20:43 +0000
committerGreg McGary <greg@mcgary.org>2000-06-26 18:20:43 +0000
commitf9e7bbcead1459b5f47998b0040ed9d5b6aac029 (patch)
treeef9ae6e1150555a5ed5ee2febb4b2c7ffb4e5be2 /sysdeps/i386/mul_1.S
parentc000cdad1aa963d190eed7494a7a3df82c91ae99 (diff)
downloadglibc-f9e7bbcead1459b5f47998b0040ed9d5b6aac029.tar.gz
glibc-f9e7bbcead1459b5f47998b0040ed9d5b6aac029.tar.xz
glibc-f9e7bbcead1459b5f47998b0040ed9d5b6aac029.zip
* sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
* sysdeps/i386/mul_1.S: Likewise. 
* sysdeps/i386/submul_1.S: Likewise. 
* sysdeps/i386/i586/add_n.S: Likewise. 
* sysdeps/i386/i586/addmul_1.S: Likewise. 
* sysdeps/i386/i586/lshift.S: Likewise. 
* sysdeps/i386/i586/mul_1.S: Likewise. 
* sysdeps/i386/i586/rshift.S: Likewise. 
* sysdeps/i386/i586/sub_n.S: Likewise. 
* sysdeps/i386/i586/submul_1.S: Likewise.
2000-06-26  Greg McGary  <greg@mcgary.org>

	* sysdeps/i386/addmul_1.S: Exchange roles of %ebp and %ebx.
	* sysdeps/i386/mul_1.S: Likewise.
	* sysdeps/i386/submul_1.S: Likewise.
	* sysdeps/i386/i586/add_n.S: Likewise.
	* sysdeps/i386/i586/addmul_1.S: Likewise.
	* sysdeps/i386/i586/lshift.S: Likewise.
	* sysdeps/i386/i586/mul_1.S: Likewise.
	* sysdeps/i386/i586/rshift.S: Likewise.
	* sysdeps/i386/i586/sub_n.S: Likewise.
	* sysdeps/i386/i586/submul_1.S: Likewise.
Diffstat (limited to 'sysdeps/i386/mul_1.S')
-rw-r--r--sysdeps/i386/mul_1.S14
1 files changed, 7 insertions, 7 deletions
diff --git a/sysdeps/i386/mul_1.S b/sysdeps/i386/mul_1.S
index 5abe97597a..f5d49540b9 100644
--- a/sysdeps/i386/mul_1.S
+++ b/sysdeps/i386/mul_1.S
@@ -31,7 +31,7 @@
 #define res_ptr edi
 #define s1_ptr esi
 #define size ecx
-#define s2_limb ebp
+#define s2_limb ebx
 
 	.text
 ENTRY(__mpn_mul_1)
@@ -39,8 +39,8 @@ ENTRY(__mpn_mul_1)
 
 	pushl	%edi
 	pushl	%esi
-	pushl	%ebx
 	pushl	%ebp
+	pushl	%ebx
 
 	movl	RES(%esp), %res_ptr
 	movl	S1(%esp), %s1_ptr
@@ -50,22 +50,22 @@ ENTRY(__mpn_mul_1)
 	leal	(%res_ptr,%size,4), %res_ptr
 	leal	(%s1_ptr,%size,4), %s1_ptr
 	negl	%size
-	xorl	%ebx, %ebx
+	xorl	%ebp, %ebp
 	ALIGN (3)
 L(oop):
 	movl	(%s1_ptr,%size,4), %eax
 	mull	%s2_limb
-	addl	%ebx, %eax
+	addl	%ebp, %eax
 	movl	%eax, (%res_ptr,%size,4)
 	adcl	$0, %edx
-	movl	%edx, %ebx
+	movl	%edx, %ebp
 
 	incl	%size
 	jnz	L(oop)
-	movl	%ebx, %eax
+	movl	%ebp, %eax
 
-	popl	%ebp
 	popl	%ebx
+	popl	%ebp
 	popl	%esi
 	popl	%edi