This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.19-195-gd71aeee
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 19 Mar 2014 16:17:47 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.19-195-gd71aeee
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via d71aeee8862acaabd5ccc151ba1b442a7b6d24d6 (commit)
from baaf1dedc969e6fc87c4d5048c260f930c73881e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d71aeee8862acaabd5ccc151ba1b442a7b6d24d6
commit d71aeee8862acaabd5ccc151ba1b442a7b6d24d6
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Mar 19 16:17:22 2014 +0000
Use ALL_RM_TEST for more libm tests.
Continuing the move to using ALL_RM_TEST for tests in libm-test.inc,
this patch converts the tests of fdim, ldexp and scalb. fdim and
scalb are cases where tests could depend on the rounding mode though
none of the present test inputs do; ldexp is such a case where the
function is equivalent to scalbn (for binary floating point) and the
tests used were a subset of those for scalbn, so this patch makes
ldexp testing use the scalbn tests, as done for other cases of libm
function aliases.
Tested x86_64 and x86.
* math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
(ldexp_test_data): Remove.
(ldexp_test): Move to after scalbn_test. Use ALL_RM_TEST with
scalbn_test_data.
(scalb_test): Use ALL_RM_TEST.
diff --git a/ChangeLog b/ChangeLog
index edffa1c..f48f6bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-03-19 Joseph Myers <joseph@codesourcery.com>
+
+ * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
+ (ldexp_test_data): Remove.
+ (ldexp_test): Move to after scalbn_test. Use ALL_RM_TEST with
+ scalbn_test_data.
+ (scalb_test): Use ALL_RM_TEST.
+
2014-03-19 Andreas Schwab <schwab@suse.de>
* nscd/nscd.service: Also invalidate netgroup cache on reload.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 5ad0255..47c162f 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -7445,9 +7445,7 @@ static const struct test_ff_f_data fdim_test_data[] =
static void
fdim_test (void)
{
- START (fdim, 1);
- RUN_TEST_LOOP_ff_f (fdim, fdim_test_data, );
- END;
+ ALL_RM_TEST (fdim, 1, fdim_test_data, RUN_TEST_LOOP_ff_f, END);
}
@@ -8169,31 +8167,6 @@ jn_test (void)
}
-static const struct test_fi_f_data ldexp_test_data[] =
- {
- TEST_fi_f (ldexp, 0, 0, 0, NO_INEXACT_EXCEPTION),
- TEST_fi_f (ldexp, minus_zero, 0, minus_zero, NO_INEXACT_EXCEPTION),
-
- TEST_fi_f (ldexp, plus_infty, 1, plus_infty, NO_INEXACT_EXCEPTION),
- TEST_fi_f (ldexp, minus_infty, 1, minus_infty, NO_INEXACT_EXCEPTION),
- TEST_fi_f (ldexp, qnan_value, 1, qnan_value, NO_INEXACT_EXCEPTION),
-
- TEST_fi_f (ldexp, 0.8L, 4, 12.8L, NO_INEXACT_EXCEPTION),
- TEST_fi_f (ldexp, -0.854375L, 5, -27.34L, NO_INEXACT_EXCEPTION),
-
- /* ldexp (x, 0) == x. */
- TEST_fi_f (ldexp, 1.0L, 0L, 1.0L, NO_INEXACT_EXCEPTION),
- };
-
-static void
-ldexp_test (void)
-{
- START (ldexp, 1);
- RUN_TEST_LOOP_fi_f (ldexp, ldexp_test_data, );
- END;
-}
-
-
static const struct test_f_f1_data lgamma_test_data[] =
{
TEST_f_f1 (lgamma, plus_infty, plus_infty, 1),
@@ -9784,10 +9757,7 @@ static const struct test_ff_f_data scalb_test_data[] =
static void
scalb_test (void)
{
-
- START (scalb, 1);
- RUN_TEST_LOOP_ff_f (scalb, scalb_test_data, );
- END;
+ ALL_RM_TEST (scalb, 1, scalb_test_data, RUN_TEST_LOOP_ff_f, END);
}
@@ -9830,6 +9800,13 @@ scalbn_test (void)
ALL_RM_TEST (scalbn, 1, scalbn_test_data, RUN_TEST_LOOP_fi_f, END);
}
+static void
+ldexp_test (void)
+{
+ /* ldexp uses the same test data as scalbn. */
+ ALL_RM_TEST (ldexp, 1, scalbn_test_data, RUN_TEST_LOOP_fi_f, END);
+}
+
static const struct test_fl_f_data scalbln_test_data[] =
{
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
math/libm-test.inc | 41 +++++++++--------------------------------
2 files changed, 17 insertions(+), 32 deletions(-)
hooks/post-receive
--
GNU C Library master sources