Update.
[glibc.git] / sysdeps / libm-i387 / s_sinl.S
blob7c8c95f8a640726c39ce9e09218a8bdd50c22f70
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  */
8 #include <machine/asm.h>
10 RCSID("$NetBSD: $")
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)