2 * ====================================================
3 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5 * Developed at SunPro, a Sun Microsystems, Inc. business.
6 * Permission to use, copy, modify, and distribute this
7 * software is freely granted, provided that this notice
9 * ====================================================
17 #include "math_private.h"
19 double atan2(double y, double x) /* wrapper atan2 */
22 return __ieee754_atan2(y,x);
25 z = __ieee754_atan2(y,x);
26 if(_LIB_VERSION == _IEEE_||isnan(x)||isnan(y)) return z;
28 return __kernel_standard(y,x,3); /* atan2(+-0,+-0) */
33 libm_hidden_def(atan2)