repo.or.cz
/
glibc
/
history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
.
[glibc/history.git]
/
sysdeps
/
libm-i387
/
s_sinl.S
blob
7c8c95f8a640726c39ce9e09218a8bdd50c22f70
1
/*
2
* Written by J.T. Conklin <jtc@netbsd.org>.
3
* Public domain.
4
*
5
* Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
6
*/
7
8
#include <machine/asm.h>
9
10
RCSID("$NetBSD: $")
11
12
ENTRY(__sinl)
13
fldt 4(%esp)
14
fsin
15
fnstsw %ax
16
testl $0x400,%eax
17
jnz 1f
18
ret
19
1: fldpi
20
fadd %st(0)
21
fxch %st(1)
22
2: fprem1
23
fnstsw %ax
24
testl $0x400,%eax
25
jnz 2b
26
fstp %st(1)
27
fsin
28
ret
29
END (__sinl)
30
weak_alias (__sinl, sinl)