]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Math/s_copysign.c
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / LibC / Math / s_copysign.c
diff --git a/StdLib/LibC/Math/s_copysign.c b/StdLib/LibC/Math/s_copysign.c
deleted file mode 100644 (file)
index 31a80af..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/* @(#)s_copysign.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: s_copysign.c,v 1.11 2002/05/26 22:01:54 wiz Exp $");\r
-#endif\r
-\r
-/*\r
- * copysign(double x, double y)\r
- * copysign(x,y) returns a value with the magnitude of x and\r
- * with the sign bit of y.\r
- */\r
-\r
-#include "math.h"\r
-#include "math_private.h"\r
-\r
-double\r
-copysign(double x, double y)\r
-{\r
-  u_int32_t hx,hy;\r
-  GET_HIGH_WORD(hx,x);\r
-  GET_HIGH_WORD(hy,y);\r
-  SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));\r
-        return x;\r
-}\r