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
(_ISwbit): Protext use of parameter with parentheses.
[glibc.git]
/
sysdeps
/
libm-i387
/
s_nearbyintf.S
blob
090c631607595af7b3eaf0395d57b50cf2db9d01
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(__nearbyintf)
10
flds 4(%esp)
11
pushl %eax
12
pushl %ecx
13
fnstcw (%esp)
14
movl (%esp), %eax
15
andl $~0x20, %eax
16
movl %eax, 4(%esp)
17
fldcw 4(%esp)
18
frndint
19
fclex
20
fldcw (%esp)
21
popl %ecx
22
popl %eax
23
ret
24
END (__nearbyintf)
25
weak_alias (__nearbyintf, nearbyintf)