aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/i586/add_n.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/i586/add_n.S
parentc000cdad1aa963d190eed7494a7a3df82c91ae99 (diff)
downloadglibc-f9e7bbcead1459b5f47998b0040ed9d5b6aac029.tar
glibc-f9e7bbcead1459b5f47998b0040ed9d5b6aac029.tar.gz
glibc-f9e7bbcead1459b5f47998b0040ed9d5b6aac029.tar.bz2
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/i586/add_n.S')
-rw-r--r--sysdeps/i386/i586/add_n.S50
1 files changed, 25 insertions, 25 deletions
diff --git a/sysdeps/i386/i586/add_n.S b/sysdeps/i386/i586/add_n.S
index 9bea31b068..7e30cac729 100644
--- a/sysdeps/i386/i586/add_n.S
+++ b/sysdeps/i386/i586/add_n.S
@@ -34,15 +34,15 @@ ENTRY(__mpn_add_n)
pushl %edi
pushl %esi
- pushl %ebx
pushl %ebp
+ pushl %ebx
movl RES(%esp),%edi
movl S1(%esp),%esi
- movl S2(%esp),%ebp
+ movl S2(%esp),%ebx
movl SIZE(%esp),%ecx
- movl (%ebp),%ebx
+ movl (%ebx),%ebp
decl %ecx
movl %ecx,%edx
@@ -58,42 +58,42 @@ L(oop): movl 28(%edi),%eax /* fetch destination cache line */
L(1): movl (%esi),%eax
movl 4(%esi),%edx
- adcl %ebx,%eax
- movl 4(%ebp),%ebx
- adcl %ebx,%edx
- movl 8(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 4(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 8(%ebx),%ebp
movl %eax,-32(%edi)
movl %edx,-28(%edi)
L(2): movl 8(%esi),%eax
movl 12(%esi),%edx
- adcl %ebx,%eax
- movl 12(%ebp),%ebx
- adcl %ebx,%edx
- movl 16(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 12(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 16(%ebx),%ebp
movl %eax,-24(%edi)
movl %edx,-20(%edi)
L(3): movl 16(%esi),%eax
movl 20(%esi),%edx
- adcl %ebx,%eax
- movl 20(%ebp),%ebx
- adcl %ebx,%edx
- movl 24(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 20(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 24(%ebx),%ebp
movl %eax,-16(%edi)
movl %edx,-12(%edi)
L(4): movl 24(%esi),%eax
movl 28(%esi),%edx
- adcl %ebx,%eax
- movl 28(%ebp),%ebx
- adcl %ebx,%edx
- movl 32(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 28(%ebx),%ebp
+ adcl %ebp,%edx
+ movl 32(%ebx),%ebp
movl %eax,-8(%edi)
movl %edx,-4(%edi)
leal 32(%esi),%esi
- leal 32(%ebp),%ebp
+ leal 32(%ebx),%ebx
decl %ecx
jnz L(oop)
@@ -105,23 +105,23 @@ L(end):
L(oop2):
leal 4(%edi),%edi
movl (%esi),%eax
- adcl %ebx,%eax
- movl 4(%ebp),%ebx
+ adcl %ebp,%eax
+ movl 4(%ebx),%ebp
movl %eax,-4(%edi)
leal 4(%esi),%esi
- leal 4(%ebp),%ebp
+ leal 4(%ebx),%ebx
decl %edx
jnz L(oop2)
L(end2):
movl (%esi),%eax
- adcl %ebx,%eax
+ adcl %ebp,%eax
movl %eax,(%edi)
sbbl %eax,%eax
negl %eax
- popl %ebp
popl %ebx
+ popl %ebp
popl %esi
popl %edi