diff options
author | Russ Cox <rsc@swtch.com> | 2007-11-05 12:27:49 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2007-11-05 12:27:49 -0500 |
commit | 88cf5927234499472ad3910aff63803f85fba40b (patch) | |
tree | 5943ba64872f7cef78015bc1bf1db07d37db5845 /src/libmp/386/mpvecdigmulsub-Darwin.s | |
parent | 50808670fce561a500eb46267f7da10bddad3524 (diff) | |
download | plan9port-88cf5927234499472ad3910aff63803f85fba40b.tar.gz plan9port-88cf5927234499472ad3910aff63803f85fba40b.tar.bz2 plan9port-88cf5927234499472ad3910aff63803f85fba40b.zip |
libmp: no text jump labels for darwin
Diffstat (limited to 'src/libmp/386/mpvecdigmulsub-Darwin.s')
-rw-r--r-- | src/libmp/386/mpvecdigmulsub-Darwin.s | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/libmp/386/mpvecdigmulsub-Darwin.s b/src/libmp/386/mpvecdigmulsub-Darwin.s index 8aef933d..8f7f4d68 100644 --- a/src/libmp/386/mpvecdigmulsub-Darwin.s +++ b/src/libmp/386/mpvecdigmulsub-Darwin.s @@ -23,7 +23,6 @@ */ .text -.p2align 2,0x90 .globl _mpvecdigmulsub _mpvecdigmulsub: /* Prelude */ @@ -39,28 +38,28 @@ _mpvecdigmulsub: movl 12(%ebp), %edi /* p */ xorl %ebp, %ebp pushl %ebp -_mulsubloop: +1: movl (%esi, %ebp, 4),%eax /* lo = b[i] */ mull %ebx /* hi, lo = b[i] * m */ addl 0(%esp), %eax /* lo += oldhi */ - jae _mulsubnocarry1 + jae 2f incl %edx /* hi += carry */ -_mulsubnocarry1: +2: subl %eax, (%edi, %ebp, 4) - jae _mulsubnocarry2 + jae 3f incl %edx /* hi += carry */ -_mulsubnocarry2: +3: movl %edx, 0(%esp) incl %ebp - loop _mulsubloop + loop 1b popl %eax subl %eax, (%edi, %ebp, 4) - jae _mulsubnocarry3 + jae 4f movl $-1, %eax - jmp done -_mulsubnocarry3: + jmp 5f +4: movl $1, %eax -done: +5: /* Postlude */ popl %edi popl %esi |