libm: Add .section .note.GNU-stack to all assembly files
[dragonfly.git] / lib / libm / arch / i386 / e_acos.S
CommitLineData
b34b60bc
JS
1/*
2 * Written by J.T. Conklin <jtc@NetBSD.org>.
3 * Public domain.
4 *
5 * $NetBSD: e_acos.S,v 1.8 2003/07/26 19:24:57 salo Exp $
b34b60bc
JS
6 */
7
8#include <machine/asm.h>
9
10#include "abi.h"
11
12/* acos = atan (sqrt(1 - x^2) / x) */
13ENTRY(acos)
14 XMM_ONE_ARG_DOUBLE_PROLOGUE
15 fldl ARG_DOUBLE_ONE /* x */
16 fld %st(0)
17 fmul %st(0) /* x^2 */
18 fld1
19 fsubp /* 1 - x^2 */
20 fsqrt /* sqrt (1 - x^2) */
21 fxch %st(1)
22 fpatan
23 XMM_DOUBLE_EPILOGUE
24 ret
d04e8698 25END(acos)
70e34eb2
JM
26
27 .section .note.GNU-stack,"",%progbits