summaryrefslogtreecommitdiffstats
path: root/lib/libm/src
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2008-09-16 22:06:24 +0000
committermartynas <martynas@openbsd.org>2008-09-16 22:06:24 +0000
commitd61db03847ed1aa0d28891ae4fc096dbed34123e (patch)
tree0f76fb61d29437cd96c7056e899e2c47e7f895d7 /lib/libm/src
parentremove another dead store. (diff)
downloadwireguard-openbsd-d61db03847ed1aa0d28891ae4fc096dbed34123e.tar.xz
wireguard-openbsd-d61db03847ed1aa0d28891ae4fc096dbed34123e.zip
gc unused files, the functions are in libc. ok millert@
Diffstat (limited to 'lib/libm/src')
-rw-r--r--lib/libm/src/s_isinf.c27
-rw-r--r--lib/libm/src/s_isinff.c26
-rw-r--r--lib/libm/src/s_isnan.c34
-rw-r--r--lib/libm/src/s_isnanf.c36
4 files changed, 0 insertions, 123 deletions
diff --git a/lib/libm/src/s_isinf.c b/lib/libm/src/s_isinf.c
deleted file mode 100644
index 2b939c445d9..00000000000
--- a/lib/libm/src/s_isinf.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Written by J.T. Conklin <jtc@netbsd.org>.
- * Public domain.
- */
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: s_isinf.c,v 1.3 1995/05/11 23:20:14 jtc Exp $";
-#endif
-
-/*
- * isinf(x) returns 1 is x is inf, else 0;
- * no branching!
- */
-
-#include "math.h"
-#include "math_private.h"
-
-int
-isinf(double x)
-{
- int32_t hx,lx;
- EXTRACT_WORDS(hx,lx,x);
- hx &= 0x7fffffff;
- hx ^= 0x7ff00000;
- hx |= lx;
- return (hx == 0);
-}
diff --git a/lib/libm/src/s_isinff.c b/lib/libm/src/s_isinff.c
deleted file mode 100644
index 4200ad04392..00000000000
--- a/lib/libm/src/s_isinff.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Written by J.T. Conklin <jtc@netbsd.org>.
- * Public domain.
- */
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: s_isinff.c,v 1.3 1995/05/11 23:20:21 jtc Exp $";
-#endif
-
-/*
- * isinff(x) returns 1 is x is inf, else 0;
- * no branching!
- */
-
-#include "math.h"
-#include "math_private.h"
-
-int
-isinff(float x)
-{
- int32_t ix;
- GET_FLOAT_WORD(ix,x);
- ix &= 0x7fffffff;
- ix ^= 0x7f800000;
- return (ix == 0);
-}
diff --git a/lib/libm/src/s_isnan.c b/lib/libm/src/s_isnan.c
deleted file mode 100644
index 060b0dedc1f..00000000000
--- a/lib/libm/src/s_isnan.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* @(#)s_isnan.c 5.1 93/09/24 */
-/*
- * ====================================================
- * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: s_isnan.c,v 1.8 1995/05/10 20:47:36 jtc Exp $";
-#endif
-
-/*
- * isnan(x) returns 1 is x is nan, else 0;
- * no branching!
- */
-
-#include "math.h"
-#include "math_private.h"
-
-int
-isnan(double x)
-{
- int32_t hx,lx;
- EXTRACT_WORDS(hx,lx,x);
- hx &= 0x7fffffff;
- hx |= (u_int32_t)(lx|(-lx))>>31;
- hx = 0x7ff00000 - hx;
- return (int)((u_int32_t)(hx))>>31;
-}
diff --git a/lib/libm/src/s_isnanf.c b/lib/libm/src/s_isnanf.c
deleted file mode 100644
index 1083215bac0..00000000000
--- a/lib/libm/src/s_isnanf.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* s_isnanf.c -- float version of s_isnan.c.
- * Conversion to float by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
- */
-
-/*
- * ====================================================
- * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: s_isnanf.c,v 1.4 1995/05/10 20:47:38 jtc Exp $";
-#endif
-
-/*
- * isnanf(x) returns 1 is x is nan, else 0;
- * no branching!
- */
-
-#include "math.h"
-#include "math_private.h"
-
-int
-isnanf(float x)
-{
- int32_t ix;
- GET_FLOAT_WORD(ix,x);
- ix &= 0x7fffffff;
- ix = 0x7f800000 - ix;
- return (int)(((u_int32_t)(ix))>>31);
-}