Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-1]: src/tests/lib/libm Pull up following revision(s) (requested...
details: https://anonhg.NetBSD.org/src/rev/e26c2f910638
branches: netbsd-6-1
changeset: 775805:e26c2f910638
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Jun 23 11:17:00 2013 +0000
description:
Pull up following revision(s) (requested by isaki in ticket #903):
tests/lib/libm/t_atan.c: revisions 1.4 - 1.7, 1.9 via patch
Fix and revive test of atan_inf_neg, atan_inf_pos and atan_tan on i386.
PR port-i386/46108.
The machine epsilon 1.0e-40 is too severe and nonsense for double
because DBL_EPSILON is about 2.2e-16 . I think that 1.0e-15 is
enough good, in this case.
XXX However, test of atan_tan should be replaced for other reasons.
Remove header files which became unnecessary in 1.7.
diffstat:
tests/lib/libm/t_atan.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 8da00604a33e -r e26c2f910638 tests/lib/libm/t_atan.c
--- a/tests/lib/libm/t_atan.c Fri Jun 14 02:44:56 2013 +0000
+++ b/tests/lib/libm/t_atan.c Sun Jun 23 11:17:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_atan.c,v 1.1 2011/09/17 18:08:35 jruoho Exp $ */
+/* $NetBSD: t_atan.c,v 1.1.10.1 2013/06/23 11:17:00 bouyer Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
{
#ifndef __vax__
const double x = -1.0L / 0.0L;
- const float eps = 1.0e-40;
+ const double eps = 1.0e-15;
if (fabs(atan(x) + M_PI_2) > eps)
atf_tc_fail_nonfatal("atan(-Inf) != -pi/2");
@@ -78,7 +78,7 @@
{
#ifndef __vax__
const double x = +1.0L / 0.0L;
- const float eps = 1.0e-40;
+ const double eps = 1.0e-15;
if (fabs(atan(x) - M_PI_2) > eps)
atf_tc_fail_nonfatal("atan(+Inf) != pi/2");
@@ -95,7 +95,7 @@
{
#ifndef __vax__
const double x[] = { 0.0, 1.0, M_PI / 2, M_PI / 3, M_PI / 6 };
- const double eps = 1.0e-40;
+ const double eps = 1.0e-15;
double y;
size_t i;
Home |
Main Index |
Thread Index |
Old Index