2 * Written by J.T. Conklin <jtc@netbsd.org>.
5 * Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
8 #include <math_private.h>
11 __ieee754_acosl (long double x
)
15 /* acosl = atanl (sqrtl(1 - x^2) / x) */
17 "fmul %%st(0)\n" /* x^2 */
19 "fsubp\n" /* 1 - x^2 */
20 "fsqrt\n" /* sqrtl (1 - x^2) */
23 : "=t" (res
) : "0" (x
) : "st(1)");