12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #if defined(LIBM_SCCS) && !defined(lint)
- static char rcsid[] = "$NetBSD: w_atan2.c,v 1.6 1995/05/10 20:48:39 jtc Exp $";
- #endif
- #include "math.h"
- #include "math_private.h"
- libm_hidden_proto(atan2)
- #ifdef __STDC__
- double atan2(double y, double x)
- #else
- double atan2(y,x)
- double y,x;
- #endif
- {
- #ifdef _IEEE_LIBM
- return __ieee754_atan2(y,x);
- #else
- double z;
- z = __ieee754_atan2(y,x);
- if(_LIB_VERSION == _IEEE_||isnan(x)||isnan(y)) return z;
- if(x==0.0&&y==0.0) {
- return __kernel_standard(y,x,3);
- } else
- return z;
- #endif
- }
- libm_hidden_def(atan2)
|