]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/libm-i387/e_acosl.S
update from main archive 961005
[thirdparty/glibc.git] / sysdeps / libm-i387 / e_acosl.S
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
11 /* acosl = atanl (sqrtl(1 - x^2) / x) */
12 ENTRY(__ieee754_acosl)
13 fldt 4(%esp) /* x */
14 fst %st(1)
15 fmul %st(0) /* x^2 */
16 fld1
17 fsubp /* 1 - x^2 */
18 fsqrt /* sqrtl (1 - x^2) */
19 fxch %st(1)
20 fpatan
21 ret
22 PSEUDO_END (__ieee754_acosl)