Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libm Vax does not do +/- INF.



details:   https://anonhg.NetBSD.org/src/rev/d6a27bdbb133
branches:  trunk
changeset: 327441:d6a27bdbb133
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Mar 07 12:46:47 2014 +0000

description:
Vax does not do +/- INF.

diffstat:

 tests/lib/libm/t_atan.c |  5 ++++-
 tests/lib/libm/t_libm.h |  4 +++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 6579fc9748d6 -r d6a27bdbb133 tests/lib/libm/t_atan.c
--- a/tests/lib/libm/t_atan.c   Fri Mar 07 12:35:14 2014 +0000
+++ b/tests/lib/libm/t_atan.c   Fri Mar 07 12:46:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_atan.c,v 1.12 2014/03/05 20:15:41 dsl Exp $ */
+/* $NetBSD: t_atan.c,v 1.13 2014/03/07 12:46:47 martin Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -37,8 +37,11 @@
        double x;
        double y;
 } values[] = {
+#ifndef __vax__
+       /* vax has no +/- INF */
        { T_LIBM_MINUS_INF, -M_PI / 2 },
        { T_LIBM_PLUS_INF,   M_PI / 2 },
+#endif
        { -100, -1.560796660108231, },
        {  -10, -1.471127674303735, },
        {   -1, -M_PI / 4, },
diff -r 6579fc9748d6 -r d6a27bdbb133 tests/lib/libm/t_libm.h
--- a/tests/lib/libm/t_libm.h   Fri Mar 07 12:35:14 2014 +0000
+++ b/tests/lib/libm/t_libm.h   Fri Mar 07 12:46:47 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_libm.h,v 1.2 2014/03/05 20:14:46 dsl Exp $ */
+/* $NetBSD: t_libm.h,v 1.3 2014/03/07 12:46:47 martin Exp $ */
 
 /*
  * Check result of fn(arg) is correct within the bounds.
@@ -43,9 +43,11 @@
     } while (0)
 
 /* Some useful constants (for test vectors) */
+#ifndef __vax__        /* no NAN nor +/- INF on vax */
 #define T_LIBM_NAN     (0.0 / 0.0)
 #define T_LIBM_PLUS_INF        (+1.0 / 0.0)
 #define T_LIBM_MINUS_INF (-1.0 / 0.0)
+#endif
 
 /* One line definition of a simple test */
 #define ATF_LIBM_TEST(name, description) \



Home | Main Index | Thread Index | Old Index