]> sourceware.org Git - glibc.git/commitdiff
2013-09-23 Steve Ellcey <sellcey@mips.com>
authorSteve Ellcey <sellcey@mips.com>
Mon, 23 Sep 2013 16:39:32 +0000 (09:39 -0700)
committerSteve Ellcey <sellcey@mips.com>
Mon, 23 Sep 2013 16:39:32 +0000 (09:39 -0700)
* sysdeps/mips/fpu/fegetround.c (fegetround): Use _FPU_RC_MASK.
* sysdeps/mips/fpu/fesetround.c (fesetround): Use _FPU_RC_MASK.

ports/ChangeLog.mips
ports/sysdeps/mips/fpu/fegetround.c
ports/sysdeps/mips/fpu/fesetround.c

index 257a68c2ef2be9626edf952478652de60cbf3c36..7882f712b7e7219d39616080c3c9aad82bda6323 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 61217a7c08751aece7e9cd3faffff3e5936b36ff..17cd3e994ab9d3fea9484904746cdf983034f241 100644 (file)
@@ -28,5 +28,5 @@ fegetround (void)
   /* Get control word.  */
   _FPU_GETCW (cw);
 
-  return cw & 0x3;
+  return cw & _FPU_RC_MASK;
 }
index 7c25f43b796acf36a2fd0f2931382be2145acded..c6fdd6622f4657ff1e7513a88599d7c90a2523d2 100644 (file)
@@ -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);
This page took 0.049761 seconds and 5 git commands to generate.