about summary refs log tree commit diff
path: root/sysdeps/sh/sh4/fpu/fesetround.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-06-09 18:46:01 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-06-09 18:46:01 +0200
commit99ff6e5c49c10bb1827e102c7a8eb6b504f0886f (patch)
treeb4b46c4f707a57b5a4c73f6fa6238774784f8a4b /sysdeps/sh/sh4/fpu/fesetround.c
parent366af02c96eea0a03ccd2fa187819d866ac49ba2 (diff)
downloadglibc-99ff6e5c49c10bb1827e102c7a8eb6b504f0886f.tar.gz
glibc-99ff6e5c49c10bb1827e102c7a8eb6b504f0886f.tar.xz
glibc-99ff6e5c49c10bb1827e102c7a8eb6b504f0886f.zip
SH: No FE_UPWARD, FE_DOWNWARD.
Diffstat (limited to 'sysdeps/sh/sh4/fpu/fesetround.c')
-rw-r--r--sysdeps/sh/sh4/fpu/fesetround.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/sh/sh4/fpu/fesetround.c b/sysdeps/sh/sh4/fpu/fesetround.c
index 82e13b68ee..91c159b40b 100644
--- a/sysdeps/sh/sh4/fpu/fesetround.c
+++ b/sysdeps/sh/sh4/fpu/fesetround.c
@@ -25,7 +25,7 @@ fesetround (int round)
 {
   fpu_control_t cw;
 
-  if ((round & ~0x3) != 0)
+  if ((round & ~0x1) != 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 &= ~0x1;
   cw |= round;
   /* Set new state.  */
   _FPU_SETCW (cw);