OpenLIBM: local modification - elf notes on assembly
[dragonfly.git] / contrib / openbsd_libm / arch / amd64 / s_tanf.S
blob2684c178f1ee08098dae062f5f4d93d999cef462
1 /*      $OpenBSD: s_tanf.S,v 1.2 2005/08/02 11:17:31 espie Exp $ */
2 /*
3  * Written by J.T. Conklin <jtc@NetBSD.org>.
4  * Public domain.
5  */
7 #include <machine/asm.h>
9 #include "abi.h"
11 /* A float's domain isn't large enough to require argument reduction. */
12 ENTRY(tanf)
13         XMM_ONE_ARG_FLOAT_PROLOGUE
14         flds    ARG_FLOAT_ONE
15         fptan
16         fstp    %st(0)
17         XMM_FLOAT_EPILOGUE
18         ret
19 END(tanf)
21         .section .note.GNU-stack,"",%progbits