Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/lib Remove round test from old regress structure



details:   https://anonhg.NetBSD.org/src/rev/a4d6833e9458
branches:  trunk
changeset: 759932:a4d6833e9458
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Dec 20 23:48:25 2010 +0000

description:
Remove round test from old regress structure

diffstat:

 regress/lib/Makefile            |   4 ++--
 regress/lib/libm/Makefile       |   5 -----
 regress/lib/libm/round/Makefile |  10 ----------
 regress/lib/libm/round/round.c  |  25 -------------------------
 4 files changed, 2 insertions(+), 42 deletions(-)

diffs (66 lines):

diff -r e515e55a0a55 -r a4d6833e9458 regress/lib/Makefile
--- a/regress/lib/Makefile      Mon Dec 20 23:47:23 2010 +0000
+++ b/regress/lib/Makefile      Mon Dec 20 23:48:25 2010 +0000
@@ -1,8 +1,8 @@
-#      $NetBSD: Makefile,v 1.26 2010/08/25 16:47:43 jmmv Exp $
+#      $NetBSD: Makefile,v 1.27 2010/12/20 23:48:25 pgoyette Exp $
 
 .include <bsd.own.mk>
 
-SUBDIR+= libc libm
+SUBDIR+= libc
 
 .if (${MACHINE_CPU} != "alpha" && \
      ${MACHINE_CPU} != "mips" && \
diff -r e515e55a0a55 -r a4d6833e9458 regress/lib/libm/Makefile
--- a/regress/lib/libm/Makefile Mon Dec 20 23:47:23 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2007/08/21 19:52:36 drochner Exp $
-
-SUBDIR=        round
-
-.include <bsd.subdir.mk>
diff -r e515e55a0a55 -r a4d6833e9458 regress/lib/libm/round/Makefile
--- a/regress/lib/libm/round/Makefile   Mon Dec 20 23:47:23 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2007/08/21 19:52:36 drochner Exp $
-
-PROG=          round
-LDADD+=                -lm
-NOMAN=
-
-regress:  $(PROG)
-       ./$(PROG)
-
-.include <bsd.prog.mk>
diff -r e515e55a0a55 -r a4d6833e9458 regress/lib/libm/round/round.c
--- a/regress/lib/libm/round/round.c    Mon Dec 20 23:47:23 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-/* $NetBSD: round.c,v 1.1 2007/08/21 19:52:36 drochner Exp $ */
-
-#include <math.h>
-
-/*
- * This tests for a bug in the initial implementation where precision
- * was lost in an internal substraction, leading to rounding
- * into the wrong direction.
- */
-
-/* 0.5 - EPSILON */
-#define VAL 0x0.7ffffffffffffcp0
-#define VALF 0x0.7fffff8p0
-
-int main()
-{
-       double a = VAL, b, c;
-       float af = VALF, bf, cf;
-
-       b = round(a);
-       bf = roundf(af);
-       c = round(-a);
-       cf = roundf(-af);
-       return (b != 0 || bf != 0 || c != 0 || cf != 0);
-}



Home | Main Index | Thread Index | Old Index