+++ /dev/null
-/* @(#)w_atan2.c 5.1 93/09/24 */\r
-/*\r
- * ====================================================\r
- * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.\r
- *\r
- * Developed at SunPro, a Sun Microsystems, Inc. business.\r
- * Permission to use, copy, modify, and distribute this\r
- * software is freely granted, provided that this notice\r
- * is preserved.\r
- * ====================================================\r
- */\r
-#include <LibConfig.h>\r
-#include <sys/EfiCdefs.h>\r
-#if defined(LIBM_SCCS) && !defined(lint)\r
-__RCSID("$NetBSD: w_atan2.c,v 1.9 2002/05/26 22:01:59 wiz Exp $");\r
-#endif\r
-\r
-/*\r
- * wrapper atan2(y,x)\r
- */\r
-\r
-#include "math.h"\r
-#include "math_private.h"\r
-\r
-\r
-double\r
-atan2(double y, double x) /* wrapper atan2 */\r
-{\r
-#ifdef _IEEE_LIBM\r
- return __ieee754_atan2(y,x);\r
-#else\r
- double z;\r
- z = __ieee754_atan2(y,x);\r
- if(_LIB_VERSION == _IEEE_||isnan(x)||isnan(y)) return z;\r
- if(x==0.0&&y==0.0) {\r
- return __kernel_standard(y,x,3); /* atan2(+-0,+-0) */\r
- } else\r
- return z;\r
-#endif\r
-}\r