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
[BZ #9720]
[glibc.git]
/
sysdeps
/
x86_64
/
fpu
/
s_nearbyintl.S
blob
dab2750a23b11aa3002500c54a6258b53b42a579
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
fnstcw -4(%rsp)
12
movl -4(%rsp), %eax
13
orl $0x20, %eax
14
movl %eax, -8(%rsp)
15
fldcw -8(%rsp)
16
frndint
17
fclex
18
fldcw -4(%rsp)
19
ret
20
END (__nearbyintl)
21
weak_alias (__nearbyintl, nearbyintl)