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.18-154-g6b9a5fe


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  6b9a5fe450d21c5852e81f2c357d2af6d20f873c (commit)
       via  5b04bb073cb6e6396c53a281bc333a6094208d33 (commit)
      from  2487f2e6a565f5670feda65b8a1a6ac930ad36f1 (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=6b9a5fe450d21c5852e81f2c357d2af6d20f873c

commit 6b9a5fe450d21c5852e81f2c357d2af6d20f873c
Author: Steve Ellcey <sellcey@mips.com>
Date:   Mon Sep 23 09:39:32 2013 -0700

    2013-09-23  Steve Ellcey  <sellcey@mips.com>
    
    	* sysdeps/mips/fpu/fegetround.c (fegetround): Use _FPU_RC_MASK.
    	* sysdeps/mips/fpu/fesetround.c (fesetround): Use _FPU_RC_MASK.

diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips
index 257a68c..7882f71 100644
--- a/ports/ChangeLog.mips
+++ b/ports/ChangeLog.mips
@@ -1,5 +1,10 @@
 2013-09-23  Steve Ellcey  <sellcey@mips.com>
 
+	* sysdeps/mips/fpu/fegetround.c (fegetround): Use _FPU_RC_MASK.
+	* sysdeps/mips/fpu/fesetround.c (fesetround): Use _FPU_RC_MASK.
+
+2013-09-23  Steve Ellcey  <sellcey@mips.com>
+
 	* sysdeps/mips/fpu_control.h (_FPU_RC_MASK): New.
 
 2013-09-23  Steve Ellcey  <sellcey@mips.com>
diff --git a/ports/sysdeps/mips/fpu/fegetround.c b/ports/sysdeps/mips/fpu/fegetround.c
index 61217a7..17cd3e9 100644
--- a/ports/sysdeps/mips/fpu/fegetround.c
+++ b/ports/sysdeps/mips/fpu/fegetround.c
@@ -28,5 +28,5 @@ fegetround (void)
   /* Get control word.  */
   _FPU_GETCW (cw);
 
-  return cw & 0x3;
+  return cw & _FPU_RC_MASK;
 }
diff --git a/ports/sysdeps/mips/fpu/fesetround.c b/ports/sysdeps/mips/fpu/fesetround.c
index 7c25f43..c6fdd66 100644
--- a/ports/sysdeps/mips/fpu/fesetround.c
+++ b/ports/sysdeps/mips/fpu/fesetround.c
@@ -25,7 +25,7 @@ fesetround (int round)
 {
   fpu_control_t cw;
 
-  if ((round & ~0x3) != 0)
+  if ((round & ~_FPU_RC_MASK) != 0)
     /* ROUND is no valid rounding mode.  */
     return 1;
 
@@ -33,7 +33,7 @@ fesetround (int round)
   _FPU_GETCW (cw);
 
   /* Set rounding bits.  */
-  cw &= ~0x3;
+  cw &= ~_FPU_RC_MASK;
   cw |= round;
   /* Set new state.  */
   _FPU_SETCW (cw);

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5b04bb073cb6e6396c53a281bc333a6094208d33

commit 5b04bb073cb6e6396c53a281bc333a6094208d33
Author: Steve Ellcey <sellcey@mips.com>
Date:   Mon Sep 23 09:34:15 2013 -0700

    2013-09-19  Steve Ellcey  <sellcey@mips.com>
    
    	* sysdeps/mips/fpu_control.h (_FPU_RC_MASK): New.

diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips
index c958f29..257a68c 100644
--- a/ports/ChangeLog.mips
+++ b/ports/ChangeLog.mips
@@ -1,5 +1,9 @@
 2013-09-23  Steve Ellcey  <sellcey@mips.com>
 
+	* sysdeps/mips/fpu_control.h (_FPU_RC_MASK): New.
+
+2013-09-23  Steve Ellcey  <sellcey@mips.com>
+
 	* sysdeps/mips/fpu_control.h (comments): Add capitalization and
 	periods to match GNU standard.
 
diff --git a/ports/sysdeps/mips/fpu_control.h b/ports/sysdeps/mips/fpu_control.h
index a318ade..ee77415 100644
--- a/ports/sysdeps/mips/fpu_control.h
+++ b/ports/sysdeps/mips/fpu_control.h
@@ -90,6 +90,8 @@ extern fpu_control_t __fpu_control;
 #define _FPU_RC_ZERO    0x1
 #define _FPU_RC_UP      0x2
 #define _FPU_RC_DOWN    0x3
+/* Mask for rounding control.  */
+#define _FPU_RC_MASK	0x3
 
 #define _FPU_RESERVED 0xfe840000  /* Reserved bits in cw, incl NAN2008.  */
 

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

Summary of changes:
 ports/ChangeLog.mips                |    9 +++++++++
 ports/sysdeps/mips/fpu/fegetround.c |    2 +-
 ports/sysdeps/mips/fpu/fesetround.c |    4 ++--
 ports/sysdeps/mips/fpu_control.h    |    2 ++
 4 files changed, 14 insertions(+), 3 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]