diff options
author | Russ Cox <rsc@swtch.com> | 2020-12-30 07:39:16 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-12-30 07:53:28 -0500 |
commit | 99dee78c2d44641ba56e5bb640d732f993b3dfa1 (patch) | |
tree | 3e785ab1037b96d4eb2dc321925bc0733332cea8 /src/libmp/386/mpdigdiv.s | |
parent | 0bd14783426d137428ffae7cd89cfc06b88d1b11 (diff) | |
download | plan9port-99dee78c2d44641ba56e5bb640d732f993b3dfa1.tar.gz plan9port-99dee78c2d44641ba56e5bb640d732f993b3dfa1.tar.bz2 plan9port-99dee78c2d44641ba56e5bb640d732f993b3dfa1.zip |
all: remove $OBJTYPE from build
Now that we assume pthreads, the only assembly
left is in libmp and libsec.
We only ever added assembly for 386.
The portable C code is fine for plan9port.
Diffstat (limited to 'src/libmp/386/mpdigdiv.s')
-rw-r--r-- | src/libmp/386/mpdigdiv.s | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/libmp/386/mpdigdiv.s b/src/libmp/386/mpdigdiv.s deleted file mode 100644 index 48d37c0d..00000000 --- a/src/libmp/386/mpdigdiv.s +++ /dev/null @@ -1,33 +0,0 @@ -.text -.p2align 2,0x90 -.globl mpdigdiv -mpdigdiv: - /* Prelude */ - pushl %ebp /* save on stack */ - pushl %ebx - - leal 12(%esp), %ebp /* %ebp = FP for now */ - movl 0(%ebp), %ebx /* dividend */ - movl 0(%ebx), %eax - movl 4(%ebx), %edx - movl 4(%ebp), %ebx /* divisor */ - movl 8(%ebp), %ebp /* quotient */ - - xorl %ecx, %ecx - cmpl %ebx, %edx /* dividend >= 2^32 * divisor */ - jae divovfl - cmpl %ecx, %ebx /* divisor == 1 */ - je divovfl - divl %ebx /* AX = DX:AX/BX */ - movl %eax, (%ebp) -done: - /* Postlude */ - popl %ebx - popl %ebp - ret - - /* return all 1's */ -divovfl: - notl %ecx - movl %ecx, (%ebp) - jmp done |