Update.
[glibc.git] / sysdeps / libm-i387 / e_asinl.S
blob3919fbcf58f202a48d9f75f4da7caf5d96078a2e
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         fld     %st
16         fmul    %st(0)                  /* x^2 */
17         fld1
18         fsubp                           /* 1 - x^2 */
19         fsqrt                           /* sqrt (1 - x^2) */
20         fpatan
21         ret
22 END (__ieee754_asinl)