]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/i386/fpu/e_asinf.S
Optimize libm
[thirdparty/glibc.git] / sysdeps / i386 / fpu / e_asinf.S
CommitLineData
d38cd08c
UD
1/*
2 * Written by J.T. Conklin <jtc@netbsd.org>.
3 * Public domain.
4 * Adapted for float type by Ulrich Drepper <drepper@cygnus.com>.
5 */
6
7#include <machine/asm.h>
8
9RCSID("$NetBSD: $")
10
11/* asin = atan (x / sqrt(1 - x^2)) */
12ENTRY(__ieee754_asinf)
13 flds 4(%esp) /* x */
0d8733c4 14 fld %st
d38cd08c
UD
15 fmul %st(0) /* x^2 */
16 fld1
17 fsubp /* 1 - x^2 */
18 fsqrt /* sqrt (1 - x^2) */
19 fpatan
20 ret
21END (__ieee754_asinf)
0ac5ae23 22strong_alias (__ieee754_asinf, __asinf_finite)