OSDN Git Service

* Makefile.shared: New file.
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libm / machine / i386 / f_atan2f.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 atan2f using Intel float instructions.
13
14    float _f_atan2f (float y, float x);
15
16 Function computes arctan ( y / x ).
17 There is no error checking or setting of errno.
18 */
19
20         #include "i386mach.h"
21
22         .global SYM (_f_atan2f)
23        SOTYPE_FUNCTION(_f_atan2f)
24
25 SYM (_f_atan2f):
26         pushl ebp
27         movl esp,ebp
28         flds 8(ebp)
29         flds 12(ebp)
30         fpatan
31
32         leave
33         ret