fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libm / mathfp / sf_atan2.c
blob69c612354ecc3ecec10217fb1d871ad219fe28e6
2 /* @(#)z_atan2f.c 1.0 98/08/13 */
3 /******************************************************************
4 * Arctangent2
6 * Input:
7 * v, u - floating point values
9 * Output:
10 * arctan2 of v / u
12 * Description:
13 * This routine returns the arctan2 of v / u.
15 *****************************************************************/
17 #include "fdlibm.h"
18 #include "zmath.h"
20 float
21 _DEFUN (atan2f, (float, float),
22 float v _AND
23 float u)
25 return (atangentf (0.0, v, u, 1));
28 #ifdef _DOUBLE_IS_32BITS
29 double atan2 (double v, double u)
31 return (double) atangentf (0.0, (float) v, (float) u, 1);
34 #endif /* defined(_DOUBLE_IS_32BITS) */