Mon Dec 2 15:32:15 1996 Ulrich Drepper <drepper@cygnus.com>
[glibc.git] / sysdeps / libm-i387 / e_asinl.S
blobd4e254874eb612e0cc29f6b0c30e121eba29fd81
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 /* asinl = atanl (x / sqrtl(1 - x^2)) */
13 ENTRY(__ieee754_asinl)
14         fldt    4(%esp)                 /* x */
15         fst     %st(1)
16         fmul    %st(0)                  /* x^2 */
17         fld1
18         fsubp                           /* 1 - x^2 */
19         fsqrt                           /* sqrt (1 - x^2) */
20         fpatan
21         ret
22 PSEUDO_END (__ieee754_asinl)