Module Name: src Committed By: christos Date: Fri Sep 30 23:51:50 UTC 2011
Modified Files: src/tests/lib/libc/gen: t_fpsetround.c Log Message: add more tests. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/gen/t_fpsetround.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/gen/t_fpsetround.c diff -u src/tests/lib/libc/gen/t_fpsetround.c:1.4 src/tests/lib/libc/gen/t_fpsetround.c:1.5 --- src/tests/lib/libc/gen/t_fpsetround.c:1.4 Fri Sep 30 19:46:15 2011 +++ src/tests/lib/libc/gen/t_fpsetround.c Fri Sep 30 19:51:50 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: t_fpsetround.c,v 1.4 2011/09/30 23:46:15 christos Exp $ */ +/* $NetBSD: t_fpsetround.c,v 1.5 2011/09/30 23:51:50 christos Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_fpsetround.c,v 1.4 2011/09/30 23:46:15 christos Exp $"); +__RCSID("$NetBSD: t_fpsetround.c,v 1.5 2011/09/30 23:51:50 christos Exp $"); #include <float.h> #include <math.h> @@ -77,9 +77,15 @@ static const struct { { "1.1", { 1, 1, 2, 1 } }, { "1.5", { 1, 2, 2, 1 } }, { "1.9", { 1, 2, 2, 1 } }, + { "2.1", { 2, 2, 3, 2 } }, + { "2.5", { 2, 2, 3, 2 } }, + { "2.9", { 2, 3, 3, 2 } }, { "-1.1", { -1, -1, -1, -2 } }, { "-1.5", { -1, -2, -1, -2 } }, { "-1.9", { -1, -2, -1, -2 } }, + { "-2.1", { -2, -2, -2, -3 } }, + { "-2.5", { -2, -2, -2, -3 } }, + { "-2.9", { -2, -3, -2, -3 } }, }; static const char *