Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm Adjust expected epsilon for sqrtl <-> powl co...
details: https://anonhg.NetBSD.org/src/rev/a46458021119
branches: trunk
changeset: 791537:a46458021119
user: martin <martin%NetBSD.org@localhost>
date: Fri Nov 22 17:19:14 2013 +0000
description:
Adjust expected epsilon for sqrtl <-> powl comparisions for defects in
powl (which actually is pow for now)
diffstat:
tests/lib/libm/t_sqrt.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r da89b02a4a9b -r a46458021119 tests/lib/libm/t_sqrt.c
--- a/tests/lib/libm/t_sqrt.c Fri Nov 22 17:16:05 2013 +0000
+++ b/tests/lib/libm/t_sqrt.c Fri Nov 22 17:19:14 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sqrt.c,v 1.4 2013/11/19 19:24:33 joerg Exp $ */
+/* $NetBSD: t_sqrt.c,v 1.5 2013/11/22 17:19:14 martin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,10 +29,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_sqrt.c,v 1.4 2013/11/19 19:24:33 joerg Exp $");
+__RCSID("$NetBSD: t_sqrt.c,v 1.5 2013/11/22 17:19:14 martin Exp $");
#include <atf-c.h>
#include <math.h>
+#include <float.h>
#include <stdio.h>
/*
@@ -288,7 +289,7 @@
{
#ifndef __vax__
const long double x[] = { 0.0, 0.005, 1.0, 99.0, 123.123, 9999.9999 };
- const long double eps = 1.0e-30;
+ const long double eps = 5.0*DBL_EPSILON; /* XXX powl == pow for now */
volatile long double y, z;
size_t i;
Home |
Main Index |
Thread Index |
Old Index