repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
X86-64: Add dummy memcopy.h and wordcopy.c
[glibc.git]
/
sysdeps
/
x86_64
/
fpu
/
s_nearbyintl.S
blob
76d41bdd522e71303ee80ebabf5dd9bde2dc7c93
1
/*
2
* Written by J.T. Conklin <jtc@netbsd.org>.
3
* Public domain.
4
*/
5
/* Adapted for use as nearbyint by Ulrich Drepper <drepper@cygnus.com>. */
6
7
#include <machine/asm.h>
8
9
ENTRY(__nearbyintl)
10
fldt 8(%rsp)
11
fnstenv -28(%rsp)
12
movl -28(%rsp), %eax
13
orl $0x20, %eax
14
movl %eax, -32(%rsp)
15
fldcw -32(%rsp)
16
frndint
17
fnstsw
18
andl $0x1, %eax
19
orl %eax, -24(%rsp)
20
fldenv -28(%rsp)
21
ret
22
END (__nearbyintl)
23
weak_alias (__nearbyintl, nearbyintl)