]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Math/w_log2.c
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / LibC / Math / w_log2.c
diff --git a/StdLib/LibC/Math/w_log2.c b/StdLib/LibC/Math/w_log2.c
deleted file mode 100644 (file)
index 35e4d1f..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/* @(#)w_log10.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_log2.c,v 1.1 2005/07/21 16:58:39 christos Exp $");\r
-#endif\r
-\r
-/*\r
- * wrapper log2(X)\r
- */\r
-\r
-#include "math.h"\r
-#include "math_private.h"\r
-\r
-\r
-double\r
-log2(double x)    /* wrapper log10 */\r
-{\r
-#ifdef _IEEE_LIBM\r
-  return __ieee754_log2(x);\r
-#else\r
-  double z;\r
-  z = __ieee754_log2(x);\r
-  if(_LIB_VERSION == _IEEE_ || isnan(x)) return z;\r
-  if(x<=0.0) {\r
-      if(x==0.0)\r
-          return __kernel_standard(x,x,48); /* log2(0) */\r
-      else\r
-          return __kernel_standard(x,x,49); /* log2(x<0) */\r
-  } else\r
-      return z;\r
-#endif\r
-}\r