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
Mon Dec 2 15:32:15 1996 Ulrich Drepper <drepper@cygnus.com>
[glibc.git]
/
sysdeps
/
libm-i387
/
s_sin.S
blob
f06c9440adcaf42c6b47e140b68ca83382e2a57e
1
/*
2
* Written by J.T. Conklin <jtc@netbsd.org>.
3
* Public domain.
4
*/
5
6
#include <machine/asm.h>
7
8
RCSID("$NetBSD: s_sin.S,v 1.5 1995/05/09 00:25:54 jtc Exp $")
9
10
ENTRY(__sin)
11
fldl 4(%esp)
12
fsin
13
fnstsw %ax
14
andw $0x400,%ax
15
jnz 1f
16
ret
17
1: fldpi
18
fadd %st(0)
19
fxch %st(1)
20
2: fprem1
21
fnstsw %ax
22
andw $0x400,%ax
23
jnz 2b
24
fstp %st(1)
25
fsin
26
ret
27
PSEUDO_END (__sin)
28
weak_alias (__sin, sin)