diff options
author | Greg McGary <greg@mcgary.org> | 2000-06-26 18:20:43 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 2000-06-26 18:20:43 +0000 |
commit | f9e7bbcead1459b5f47998b0040ed9d5b6aac029 (patch) | |
tree | ef9ae6e1150555a5ed5ee2febb4b2c7ffb4e5be2 /sysdeps/i386/i586/lshift.S | |
parent | c000cdad1aa963d190eed7494a7a3df82c91ae99 (diff) | |
download | glibc-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/lshift.S')
-rw-r--r-- | sysdeps/i386/i586/lshift.S | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/sysdeps/i386/i586/lshift.S b/sysdeps/i386/i586/lshift.S index d3f0da0062..2a44150377 100644 --- a/sysdeps/i386/i586/lshift.S +++ b/sysdeps/i386/i586/lshift.S @@ -33,12 +33,12 @@ ENTRY(__mpn_lshift) pushl %edi pushl %esi - pushl %ebx pushl %ebp + pushl %ebx movl RES(%esp),%edi movl S(%esp),%esi - movl SIZE(%esp),%ebp + movl SIZE(%esp),%ebx movl CNT(%esp),%ecx /* We can use faster code for shift-by-1 under certain conditions. */ @@ -47,13 +47,13 @@ ENTRY(__mpn_lshift) leal 4(%esi),%eax cmpl %edi,%eax jnc L(special) /* jump if s_ptr + 1 >= res_ptr */ - leal (%esi,%ebp,4),%eax + leal (%esi,%ebx,4),%eax cmpl %eax,%edi jnc L(special) /* jump if res_ptr >= s_ptr + size */ L(normal): - leal -4(%edi,%ebp,4),%edi - leal -4(%esi,%ebp,4),%esi + leal -4(%edi,%ebx,4),%edi + leal -4(%esi,%ebx,4),%esi movl (%esi),%edx subl $4,%esi @@ -61,52 +61,52 @@ L(normal): shldl %cl,%edx,%eax /* compute carry limb */ pushl %eax /* push carry limb onto stack */ - decl %ebp - pushl %ebp - shrl $3,%ebp + decl %ebx + pushl %ebx + shrl $3,%ebx jz L(end) movl (%edi),%eax /* fetch destination cache line */ ALIGN (2) L(oop): movl -28(%edi),%eax /* fetch destination cache line */ - movl %edx,%ebx + movl %edx,%ebp movl (%esi),%eax movl -4(%esi),%edx - shldl %cl,%eax,%ebx + shldl %cl,%eax,%ebp shldl %cl,%edx,%eax - movl %ebx,(%edi) + movl %ebp,(%edi) movl %eax,-4(%edi) - movl -8(%esi),%ebx + movl -8(%esi),%ebp movl -12(%esi),%eax - shldl %cl,%ebx,%edx - shldl %cl,%eax,%ebx + shldl %cl,%ebp,%edx + shldl %cl,%eax,%ebp movl %edx,-8(%edi) - movl %ebx,-12(%edi) + movl %ebp,-12(%edi) movl -16(%esi),%edx - movl -20(%esi),%ebx + movl -20(%esi),%ebp shldl %cl,%edx,%eax - shldl %cl,%ebx,%edx + shldl %cl,%ebp,%edx movl %eax,-16(%edi) movl %edx,-20(%edi) movl -24(%esi),%eax movl -28(%esi),%edx - shldl %cl,%eax,%ebx + shldl %cl,%eax,%ebp shldl %cl,%edx,%eax - movl %ebx,-24(%edi) + movl %ebp,-24(%edi) movl %eax,-28(%edi) subl $32,%esi subl $32,%edi - decl %ebp + decl %ebx jnz L(oop) -L(end): popl %ebp - andl $7,%ebp +L(end): popl %ebx + andl $7,%ebx jz L(end2) L(oop2): movl (%esi),%eax @@ -115,7 +115,7 @@ L(oop2): movl %eax,%edx subl $4,%esi subl $4,%edi - decl %ebp + decl %ebx jnz L(oop2) L(end2): @@ -124,8 +124,8 @@ L(end2): popl %eax /* pop carry limb */ - popl %ebp popl %ebx + popl %ebp popl %esi popl %edi @@ -141,13 +141,13 @@ L(special): movl (%esi),%edx addl $4,%esi - decl %ebp - pushl %ebp - shrl $3,%ebp + decl %ebx + pushl %ebx + shrl $3,%ebx addl %edx,%edx - incl %ebp - decl %ebp + incl %ebx + decl %ebx jz L(Lend) movl (%edi),%eax /* fetch destination cache line */ @@ -155,56 +155,56 @@ L(special): ALIGN (2) L(Loop): movl 28(%edi),%eax /* fetch destination cache line */ - movl %edx,%ebx + movl %edx,%ebp movl (%esi),%eax movl 4(%esi),%edx adcl %eax,%eax - movl %ebx,(%edi) + movl %ebp,(%edi) adcl %edx,%edx movl %eax,4(%edi) - movl 8(%esi),%ebx + movl 8(%esi),%ebp movl 12(%esi),%eax - adcl %ebx,%ebx + adcl %ebp,%ebp movl %edx,8(%edi) adcl %eax,%eax - movl %ebx,12(%edi) + movl %ebp,12(%edi) movl 16(%esi),%edx - movl 20(%esi),%ebx + movl 20(%esi),%ebp adcl %edx,%edx movl %eax,16(%edi) - adcl %ebx,%ebx + adcl %ebp,%ebp movl %edx,20(%edi) movl 24(%esi),%eax movl 28(%esi),%edx adcl %eax,%eax - movl %ebx,24(%edi) + movl %ebp,24(%edi) adcl %edx,%edx movl %eax,28(%edi) leal 32(%esi),%esi /* use leal not to clobber carry */ leal 32(%edi),%edi - decl %ebp + decl %ebx jnz L(Loop) L(Lend): - popl %ebp + popl %ebx sbbl %eax,%eax /* save carry in %eax */ - andl $7,%ebp + andl $7,%ebx jz L(Lend2) addl %eax,%eax /* restore carry from eax */ L(Loop2): - movl %edx,%ebx + movl %edx,%ebp movl (%esi),%edx adcl %edx,%edx - movl %ebx,(%edi) + movl %ebp,(%edi) leal 4(%esi),%esi /* use leal not to clobber carry */ leal 4(%edi),%edi - decl %ebp + decl %ebx jnz L(Loop2) jmp L(L1) @@ -215,8 +215,8 @@ L(L1): movl %edx,(%edi) /* store last limb */ sbbl %eax,%eax negl %eax - popl %ebp popl %ebx + popl %ebp popl %esi popl %edi |