]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Math/w_exp.c
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / LibC / Math / w_exp.c
diff --git a/StdLib/LibC/Math/w_exp.c b/StdLib/LibC/Math/w_exp.c
deleted file mode 100644 (file)
index f2a0e39..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/* @(#)w_exp.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_exp.c,v 1.9 2002/05/26 22:02:00 wiz Exp $");\r
-#endif\r
-\r
-/*\r
- * wrapper exp(x)\r
- */\r
-\r
-#include "math.h"\r
-#include "math_private.h"\r
-\r
-#ifndef _IEEE_LIBM\r
-static const double\r
-o_threshold=  7.09782712893383973096e+02,  /* 0x40862E42, 0xFEFA39EF */\r
-u_threshold= -7.45133219101941108420e+02;  /* 0xc0874910, 0xD52D3051 */\r
-#endif\r
-\r
-double\r
-exp(double x)   /* wrapper exp */\r
-{\r
-#ifdef _IEEE_LIBM\r
-  return __ieee754_exp(x);\r
-#else\r
-  double z;\r
-  z = __ieee754_exp(x);\r
-  if(_LIB_VERSION == _IEEE_) return z;\r
-  if(finite(x)) {\r
-      if(x>o_threshold)\r
-          return __kernel_standard(x,x,6); /* exp overflow */\r
-      else if(x<u_threshold)\r
-          return __kernel_standard(x,x,7); /* exp underflow */\r
-  }\r
-  return z;\r
-#endif\r
-}\r