Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sf_atan2.c « mathfp « libm « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69c612354ecc3ecec10217fb1d871ad219fe28e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

/* @(#)z_atan2f.c 1.0 98/08/13 */
/******************************************************************
 * Arctangent2
 *
 * Input:
 *   v, u - floating point values
 *
 * Output:
 *   arctan2 of v / u 
 *
 * Description:
 *   This routine returns the arctan2 of v / u.
 *
 *****************************************************************/

#include "fdlibm.h"
#include "zmath.h"

float
_DEFUN (atan2f, (float, float),
        float v _AND
        float u)
{
  return (atangentf (0.0, v, u, 1));
}

#ifdef _DOUBLE_IS_32BITS
double atan2 (double v, double u)
{
  return (double) atangentf (0.0, (float) v, (float) u, 1);
}

#endif /* defined(_DOUBLE_IS_32BITS) */