Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm Fix bug/oversight.
details: https://anonhg.NetBSD.org/src/rev/73e05ca6fe0b
branches: trunk
changeset: 769561:73e05ca6fe0b
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed Sep 14 13:47:40 2011 +0000
description:
Fix bug/oversight.
diffstat:
tests/lib/libm/t_ldexp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 377621add122 -r 73e05ca6fe0b tests/lib/libm/t_ldexp.c
--- a/tests/lib/libm/t_ldexp.c Wed Sep 14 13:29:58 2011 +0000
+++ b/tests/lib/libm/t_ldexp.c Wed Sep 14 13:47:40 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ldexp.c,v 1.6 2011/09/14 06:50:43 jruoho Exp $ */
+/* $NetBSD: t_ldexp.c,v 1.7 2011/09/14 13:47:40 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ldexp.c,v 1.6 2011/09/14 06:50:43 jruoho Exp $");
+__RCSID("$NetBSD: t_ldexp.c,v 1.7 2011/09/14 13:47:40 jruoho Exp $");
#include <math.h>
#include <limits.h>
@@ -57,7 +57,7 @@
for (i = 0; i < __arraycount(n); i++) {
y = ldexp(x, n[i]);
- ATF_CHECK(x * exp2(n[i]));
+ ATF_CHECK(y == x * exp2(n[i]));
}
#endif
}
@@ -184,7 +184,7 @@
for (i = 0; i < __arraycount(n); i++) {
y = ldexpf(x, n[i]);
- ATF_CHECK(x * exp2f(n[i]));
+ ATF_CHECK(y == x * exp2f(n[i]));
}
#endif
}
Home |
Main Index |
Thread Index |
Old Index