freebsd-dev/lib/libc/i386/gen/fixdfsi.S
Garrett Wollman 2ceb2ce9ee First crack at making libc work with the new make macros. It compiles on
my machine, and a simple static (genassym) and shared (sysctl) executable
both work.  Still to be done: RPCand YP merge.
1994-08-05 01:19:12 +00:00

21 lines
324 B
ArmAsm

.file "__fixdfsi.s"
.text
.align 2
.globl ___fixdfsi
.type ___fixdfsi,@function
___fixdfsi:
pushl %ebp
movl %esp,%ebp
subl $12,%esp
fstcw -4(%ebp)
movw -4(%ebp),%ax
orw $0x0c00,%ax
movw %ax,-2(%ebp)
fldcw -2(%ebp)
fldl 8(%ebp)
fistpl -12(%ebp)
fldcw -4(%ebp)
movl -12(%ebp),%eax
leave
ret