OSDN Git Service

Initial revision
[pf3gnuchains/pf3gnuchains4x.git] / newlib / libc / machine / i386 / f_tan.S
1 /*
2  * ==================================================== 
3  * Copyright (C) 1998 by Cygnus Solutions. 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 /*
12 Fast version of tan using Intel float instructions.
13
14    double _f_tan (double x);
15
16 Function calculates the tangent of x.
17 There is no error checking or setting of errno. 
18 */
19
20         #include "i386mach.h"
21
22         .global SYM (_f_tan)
23
24 SYM (_f_tan):
25         pushl ebp
26         movl esp,ebp
27         fldl 8(ebp)
28         fptan
29         fincstp
30
31         leave
32         ret