53 pi = 3.1415926535897931160E+00,
54 pi_lo = 1.2246467991473531772E-16;
87 double atan2(
double y,
double x)
90 int32_t k, m, hx, hy, ix, iy;
97 if (((ix | ((lx | -lx) >> 31)) > 0x7ff00000) ||
98 ((iy | ((ly | -ly) >> 31)) > 0x7ff00000))
100 if (((hx - 0x3ff00000) | lx) == 0)
102 m = ((hy >> 31) & 1) | ((hx >> 30) & 2);
123 if (ix == 0x7ff00000)
125 if (iy == 0x7ff00000)
155 if (iy == 0x7ff00000)
162 else if (hx < 0 && k < -60)
#define GET_HIGH_WORD(i, d)
Get the more significant 32 bit int from a double.
#define EXTRACT_WORDS(ix0, ix1, d)
Get two 32 bit ints from a double.
static const double pi_lo
static const double pi_o_2
double fabs(double x)
Returns the absolute value of x.
double atan(double x)
Inverse tangent function.
double atan2(double y, double x)
Inverse tangent function.
static const double pi_o_4
#define SET_HIGH_WORD(d, v)
Set the more significant 32 bits of a double from an int.