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.25-68-g4f5a9af


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  4f5a9afffb7f1fdb330b0f8dcca196a439ac07a8 (commit)
      from  d4f94368a96541db2b38b6535402a941f5aff975 (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=4f5a9afffb7f1fdb330b0f8dcca196a439ac07a8

commit 4f5a9afffb7f1fdb330b0f8dcca196a439ac07a8
Author: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Date:   Fri Feb 24 21:14:09 2017 -0300

    Use independent type literals in libm-test-support.c
    
    	* math/libm-test-support.c (check_ulp): Use LIT() around literal
    	numbers.

diff --git a/ChangeLog b/ChangeLog
index 2734e30..01f123c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
+
+	* math/libm-test-support.c (check_ulp): Use LIT() around literal
+	numbers.
+
 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
 
 	* resolv/tst-resolv-qtypes.c (domain):
diff --git a/math/libm-test-support.c b/math/libm-test-support.c
index 8890c1c..07b8f25 100644
--- a/math/libm-test-support.c
+++ b/math/libm-test-support.c
@@ -1083,7 +1083,7 @@ check_ulp (void)
        exit (EXIT_FAILURE);
      }
    /* Check that the ulp of one is a normal value... */
-   ulps = ulp (1.0L);
+   ulps = ulp (LIT(1.0));
    if (fpclassify (ulps) != FP_NORMAL)
      {
        fprintf (stderr, "ulp (1.0L) is not FP_NORMAL\n");
@@ -1094,8 +1094,8 @@ check_ulp (void)
       We allow +/- 1 ulp around the represented value.  */
    value = FUNC(nextafter) (0, 1);
    ulps = ULPDIFF (value, 0);
-   ulpx = ulp (1.0L);
-   if (ulps < (1.0L - ulpx) || ulps > (1.0L + ulpx))
+   ulpx = ulp (LIT(1.0));
+   if (ulps < (LIT(1.0) - ulpx) || ulps > (LIT(1.0) + ulpx))
      {
        fprintf (stderr, "Value outside of 1 +/- 1ulp.\n");
        exit (EXIT_FAILURE);
@@ -1105,8 +1105,8 @@ check_ulp (void)
       We allow +/- 1 ulp around the represented value.  */
    value = FUNC(nextafter) (10, 20);
    ulps = ULPDIFF (value, 10);
-   ulpx = ulp (1.0L);
-   if (ulps < (1.0L - ulpx) || ulps > (1.0L + ulpx))
+   ulpx = ulp (LIT(1.0));
+   if (ulps < (LIT(1.0) - ulpx) || ulps > (LIT(1.0) + ulpx))
      {
        fprintf (stderr, "Value outside of 1 +/- 1ulp.\n");
        exit (EXIT_FAILURE);
@@ -1114,8 +1114,8 @@ check_ulp (void)
    /* This gives one more ulp.  */
    value = FUNC(nextafter) (value, 20);
    ulps = ULPDIFF (value, 10);
-   ulpx = ulp (2.0L);
-   if (ulps < (2.0L - ulpx) || ulps > (2.0L + ulpx))
+   ulpx = ulp (LIT(2.0));
+   if (ulps < (LIT(2.0) - ulpx) || ulps > (LIT(2.0) + ulpx))
      {
        fprintf (stderr, "Value outside of 2 +/- 1ulp.\n");
        exit (EXIT_FAILURE);
@@ -1124,8 +1124,8 @@ check_ulp (void)
    for (i = 2; i < 100; i++)
      value = FUNC(nextafter) (value, 20);
    ulps = ULPDIFF (value, 10);
-   ulpx = ulp (100.0L);
-   if (ulps < (100.0L - ulpx) || ulps > (100.0L + ulpx))
+   ulpx = ulp (LIT(100.0));
+   if (ulps < (LIT(100.0) - ulpx) || ulps > (LIT(100.0) + ulpx))
      {
        fprintf (stderr, "Value outside of 100 +/- 1ulp.\n");
        exit (EXIT_FAILURE);

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

Summary of changes:
 ChangeLog                |    5 +++++
 math/libm-test-support.c |   18 +++++++++---------
 2 files changed, 14 insertions(+), 9 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]