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.26-264-ga617bd1


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  a617bd119f1b36a7ff2d2fdecf0d2f56970d0288 (commit)
      from  ce870587d5055437619680700ee5663a3cec66f6 (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=a617bd119f1b36a7ff2d2fdecf0d2f56970d0288

commit a617bd119f1b36a7ff2d2fdecf0d2f56970d0288
Author: Zack Weinberg <zackw@panix.com>
Date:   Fri Sep 1 11:19:47 2017 -0400

    math/math.h (HUGE_VAL): Improve commentary.

diff --git a/ChangeLog b/ChangeLog
index 4f8a12c..32b304b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-09-01  Zack Weinberg  <zackw@panix.com>
+
+	* math/math.h (HUGE_VAL): Improve commentary.
+
 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 	    Andreas Schwab  <schwab@suse.de>
 
diff --git a/math/math.h b/math/math.h
index bbc1ab9..547b36d 100644
--- a/math/math.h
+++ b/math/math.h
@@ -37,11 +37,16 @@ __BEGIN_DECLS
 /* Gather machine dependent type support.  */
 #include <bits/floatn.h>
 
-/* Value returned on overflow.  On all IEEE754 machines, this is
-   +Infinity.  */
+/* Value returned on overflow.  With IEEE 754 floating point, this is
+   +Infinity, otherwise the largest representable positive value.  */
 #if __GNUC_PREREQ (3, 3)
 # define HUGE_VAL (__builtin_huge_val ())
 #else
+/* This may provoke compiler warnings, and may not be rounded to
+   +Infinity in all IEEE 754 rounding modes, but is the best that can
+   be done in ISO C while remaining a constant expression.  10,000 is
+   greater than the maximum (decimal) exponent for all supported
+   floating-point formats and widths.  */
 # define HUGE_VAL 1e10000
 #endif
 #ifdef __USE_ISOC99

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

Summary of changes:
 ChangeLog   |    4 ++++
 math/math.h |    9 +++++++--
 2 files changed, 11 insertions(+), 2 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]