summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libm/Makefile5
-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
5 files changed, 2 insertions, 126 deletions
diff --git a/lib/libm/Makefile b/lib/libm/Makefile
index 8dd6119d15d..a1d109a8392 100644
--- a/lib/libm/Makefile
+++ b/lib/libm/Makefile
@@ -1,5 +1,5 @@
# $NetBSD: Makefile,v 1.28 1995/11/20 22:06:19 jtc Exp $
-# $OpenBSD: Makefile,v 1.56 2008/09/11 19:19:34 martynas Exp $
+# $OpenBSD: Makefile,v 1.57 2008/09/16 22:06:24 martynas Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -110,8 +110,7 @@ NOIEEE_SRCS = n_asincos.c n_acosh.c n_asinh.c n_atan.c n_atanh.c n_cosh.c \
# OpenBSD's C library supplies these functions:
-#COMMON_SRCS+= s_fabs.c s_frexp.c s_isinf.c s_isinff.c s_isnan.c s_isnanf.c \
-# s_ldexp.c s_modf.c
+#COMMON_SRCS+= s_fabs.c s_frexp.c s_ldexp.c s_modf.c
.if (${MACHINE_ARCH} == "vax")
SRCS= ${NOIEEE_SRCS} ${NOIEEE_ARCH}
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);
-}