This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-646-g8329e4d


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  8329e4da356686583278dd2664f005a7acebb61b (commit)
      from  74c574788db0d3a7b15a59e38f38bf3c117ce75a (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=8329e4da356686583278dd2664f005a7acebb61b

commit 8329e4da356686583278dd2664f005a7acebb61b
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Sat May 11 11:10:31 2013 +0000

    Make fma and nextafter tests use max_value instead of fltmax.

diff --git a/ChangeLog b/ChangeLog
index 806099e..2027bd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
 
+	* math/libm-test.inc (fma_test): Use max_value instead of local
+	variable fltmax.
+	(nextafter_test): Likewise.
+
 	* math/libm-test.inc (acos_towardzero_test_data): New variable.
 	(acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
 	(acos_downward_test_data): New variable.
diff --git a/math/libm-test.inc b/math/libm-test.inc
index e736cdd..2d4006f 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -8220,12 +8220,10 @@ fma_test (void)
 
   TEST_fff_f (fma, 1.25L, 0.75L, 0.0625L, 1.0L);
 
-  FLOAT fltmax = CHOOSE (LDBL_MAX, DBL_MAX, FLT_MAX,
-			 LDBL_MAX, DBL_MAX, FLT_MAX);
-  TEST_fff_f (fma, -fltmax, -fltmax, minus_infty, minus_infty);
-  TEST_fff_f (fma, fltmax / 2, fltmax / 2, minus_infty, minus_infty);
-  TEST_fff_f (fma, -fltmax, fltmax, plus_infty, plus_infty);
-  TEST_fff_f (fma, fltmax / 2, -fltmax / 4, plus_infty, plus_infty);
+  TEST_fff_f (fma, -max_value, -max_value, minus_infty, minus_infty);
+  TEST_fff_f (fma, max_value / 2, max_value / 2, minus_infty, minus_infty);
+  TEST_fff_f (fma, -max_value, max_value, plus_infty, plus_infty);
+  TEST_fff_f (fma, max_value / 2, -max_value / 4, plus_infty, plus_infty);
   TEST_fff_f (fma, plus_infty, 4, plus_infty, plus_infty);
   TEST_fff_f (fma, 2, minus_infty, minus_infty, minus_infty);
   TEST_fff_f (fma, minus_infty, minus_infty, plus_infty, plus_infty);
@@ -11306,10 +11304,8 @@ nextafter_test (void)
   TEST_ff_f (nextafter, 1.1L, qnan_value, qnan_value);
   TEST_ff_f (nextafter, qnan_value, qnan_value, qnan_value);
 
-  FLOAT fltmax = CHOOSE (LDBL_MAX, DBL_MAX, FLT_MAX,
-			 LDBL_MAX, DBL_MAX, FLT_MAX);
-  TEST_ff_f (nextafter, fltmax, plus_infty, plus_infty, OVERFLOW_EXCEPTION);
-  TEST_ff_f (nextafter, -fltmax, minus_infty, minus_infty, OVERFLOW_EXCEPTION);
+  TEST_ff_f (nextafter, max_value, plus_infty, plus_infty, OVERFLOW_EXCEPTION);
+  TEST_ff_f (nextafter, -max_value, minus_infty, minus_infty, OVERFLOW_EXCEPTION);
 
 #ifdef TEST_LDOUBLE
   // XXX Enable once gcc is fixed.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |    4 ++++
 math/libm-test.inc |   16 ++++++----------
 2 files changed, 10 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]