repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
VM: full munmap
[minix.git]
/
lib
/
libm
/
arch
/
i387
/
lrint.S
blob
1ae8c8885c52455f965e76c5c53d24d2a12ba5fd
1
/* $NetBSD: lrint.S,v 1.2 2004/10/13 15:18:32 drochner Exp $ */
2
3
/*
4
* Written by Matthias Drochner <drochner@NetBSD.org>.
5
* Public domain.
6
*/
7
8
#include <machine/asm.h>
9
10
ENTRY(lrint)
11
#ifdef __i386__
12
pushl %ebp
13
movl %esp,%ebp
14
subl $4,%esp
15
fldl 8(%ebp)
16
fistpl (%esp)
17
movl (%esp),%eax
18
leave
19
ret
20
#else
21
cvtsd2siq %xmm0,%rax
22
ret
23
#endif