freebsd-dev/lib/libc/i386/gen/fixdfsi.S
David Greenman 717d9cdd57 First round of changes to clean up the RCSID mess in libc:
1) Changed LIB_SCCS and SYSLIB_SCCS to LIB_RCS and SYSLIB_RCS.
2) Changed sccsid[] variables to rcsid[]
3) Moved all RCSID strings into .text
4) Converted all SCCSID's to RCS $Id$'s
5) Added missing $Id$'s after copyright.
1995-01-23 01:30:24 +00:00

25 lines
340 B
ArmAsm

/*
* $Id$
*/
.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