1 /* wf_atan2.c -- float version of w_atan2.c.
2 * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
6 * ====================================================
7 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
9 * Developed at SunPro, a Sun Microsystems, Inc. business.
10 * Permission to use, copy, modify, and distribute this
11 * software is freely granted, provided that this notice
13 * ====================================================
25 float atan2f(float y
, float x
) /* wrapper atan2f */
27 float atan2f(y
,x
) /* wrapper atan2 */
32 return __ieee754_atan2f(y
,x
);
36 z
= __ieee754_atan2f(y
,x
);
37 if(_LIB_VERSION
== _IEEE_
||isnanf(x
)||isnanf(y
)) return z
;
38 if(x
==(float)0.0&&y
==(float)0.0) {
46 if(_LIB_VERSION
== _POSIX_
)
48 else if (!matherr(&exc
)) {
53 return (float)exc
.retval
;
59 #ifdef _DOUBLE_IS_32BITS
62 double atan2(double y
, double x
)
68 return (double) atan2f((float) y
, (float) x
);
71 #endif /* defined(_DOUBLE_IS_32BITS) */