Replace the files with the NetBSD ones, which are the rewritten ones by
[dragonfly.git] / lib / msun / i387 / e_acos.S
1 /*
2  * Written by J.T. Conklin <jtc@NetBSD.org>.
3  * Public domain.
4  */
5
6 #include <machine/asm.h>
7
8 #include "abi.h"
9
10 #if 0
11 RCSID("$NetBSD: e_acos.S,v 1.7 2001/06/19 00:26:29 fvdl Exp $")
12 #endif
13 RCSID("$DragonFly: src/lib/msun/i387/Attic/e_acos.S,v 1.3 2004/12/29 11:40:17 asmodai Exp $")
14
15 /* acos = atan (sqrt(1 - x^2) / x) */
16 ENTRY(__ieee754_acos)
17         XMM_ONE_ARG_DOUBLE_PROLOGUE
18         fldl    ARG_DOUBLE_ONE          /* x */
19         fld     %st(0)
20         fmul    %st(0)                  /* x^2 */
21         fld1
22         fsubp                           /* 1 - x^2 */
23         fsqrt                           /* sqrt (1 - x^2) */
24         fxch    %st(1)
25         fpatan
26         XMM_DOUBLE_EPILOGUE
27         ret