projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'vendor/LIBARCHIVE'
[dragonfly.git]
/
lib
/
libm
/
arch
/
i386
/
lrint.S
1
/*
2
* Written by Matthias Drochner <drochner@NetBSD.org>.
3
* Public domain.
4
*
5
* $NetBSD: lrint.S,v 1.2 2004/10/13 15:18:32 drochner Exp $
6
* $DragonFly: src/lib/libm/arch/i386/lrint.S,v 1.1 2005/07/26 21:15:19 joerg Exp $
7
*/
8
9
#include <machine/asm.h>
10
11
ENTRY(lrint)
12
#ifdef __i386__
13
pushl %ebp
14
movl %esp,%ebp
15
subl $4,%esp
16
fldl 8(%ebp)
17
fistpl (%esp)
18
movl (%esp),%eax
19
leave
20
ret
21
#else
22
cvtsd2siq %xmm0,%rax
23
ret
24
#endif