summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/gen/fixdfsi.S
blob: 398506c6c832a1611d7c28d002bd829800390371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 *	$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
OpenPOWER on IntegriCloud