1/*
2 * ====================================================
3 * Copyright (C) 1998, 2002 by Red Hat Inc. All rights reserved.
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software is freely granted, provided that this notice
7 * is preserved.
8 * ====================================================
9 */
10
11#include <picolibc.h>
12
13#if !defined(_SOFT_FLOAT)
14
15/*
16Fast version of tanf using Intel float instructions.
17
18   float _f_tanf (float x);
19
20Function calculates the tangent of x.
21There is no error checking or setting of errno.
22*/
23
24	#include "i386mach.h"
25
26	.global SYM (_f_tanf)
27       SOTYPE_FUNCTION(_f_tanf)
28
29SYM (_f_tanf):
30	pushl ebp
31	movl esp,ebp
32	flds 8(ebp)
33	fptan
34	ffree %st(0)
35	fincstp
36
37	leave
38	ret
39
40#endif
41