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.22-287-gcfcbebf


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  cfcbebf7ac5de5bf1928201b6bd9cd5e6764b4a7 (commit)
      from  d96164c33012fccc7ba3ebb4d324c7fd0c6b5836 (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=cfcbebf7ac5de5bf1928201b6bd9cd5e6764b4a7

commit cfcbebf7ac5de5bf1928201b6bd9cd5e6764b4a7
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Sep 23 22:52:13 2015 +0000

    Don't use volatile in exp2f.
    
    sysdeps/ieee754/flt-32/e_exp2f.c declares two variable as "static
    const volatile float".  Maybe this use of "volatile" was originally
    intended to inhibit optimization of underflowing / overflowing
    operations such as TWOM100 * TWOM100; in any case, it's not currently
    needed, as given -frounding-math constant folding of such expressions
    is properly disabled when it would be unsafe.  This patch removes the
    unnecessary use of "volatile".
    
    Tested for x86_64.
    
    	* sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
    	(TWO127): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 20fd655..019b66f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
+	(TWO127): Likewise.
+
 	* sysdeps/generic/math_private.h (fabs_tg): New macro.
 	(min_of_type): Likewise.
 	(math_check_force_underflow): Likewise.
diff --git a/sysdeps/ieee754/flt-32/e_exp2f.c b/sysdeps/ieee754/flt-32/e_exp2f.c
index d8e7a9c..c053340 100644
--- a/sysdeps/ieee754/flt-32/e_exp2f.c
+++ b/sysdeps/ieee754/flt-32/e_exp2f.c
@@ -37,8 +37,8 @@
 
 #include "t_exp2f.h"
 
-static const volatile float TWOM100 = 7.88860905e-31;
-static const volatile float TWO127 = 1.7014118346e+38;
+static const float TWOM100 = 7.88860905e-31;
+static const float TWO127 = 1.7014118346e+38;
 
 float
 __ieee754_exp2f (float x)

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

Summary of changes:
 ChangeLog                        |    3 +++
 sysdeps/ieee754/flt-32/e_exp2f.c |    4 ++--
 2 files changed, 5 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]