about summary refs log tree commit diff
path: root/sysdeps/sh/sh4/fpu
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2012-04-05 11:58:30 +0900
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2012-04-05 11:58:30 +0900
commitf402708f8a593280992bdaf037f57c6a16c233cc (patch)
treedf70609a7ffc40eb5acb27694535001721c46be8 /sysdeps/sh/sh4/fpu
parent2ecccfc97ac9e755f6b67fa0bac785148c7b8256 (diff)
downloadglibc-f402708f8a593280992bdaf037f57c6a16c233cc.tar.gz
glibc-f402708f8a593280992bdaf037f57c6a16c233cc.tar.xz
glibc-f402708f8a593280992bdaf037f57c6a16c233cc.zip
Fix return value of SH fesetround.
Diffstat (limited to 'sysdeps/sh/sh4/fpu')
-rw-r--r--sysdeps/sh/sh4/fpu/fesetround.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/sh/sh4/fpu/fesetround.c b/sysdeps/sh/sh4/fpu/fesetround.c
index 5df96d2d0e..3269199ea9 100644
--- a/sysdeps/sh/sh4/fpu/fesetround.c
+++ b/sysdeps/sh/sh4/fpu/fesetround.c
@@ -1,5 +1,5 @@
 /* Set current rounding direction.
-   Copyright (C) 1998, 2000, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1998, 2000, 2005, 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
 
@@ -27,7 +27,7 @@ fesetround (int round)
 
   if ((round & ~0x3) != 0)
     /* ROUND is no valid rounding mode.  */
-    return 0;
+    return 1;
 
   /* Get current state.  */
   _FPU_GETCW (cw);
@@ -38,6 +38,6 @@ fesetround (int round)
   /* Set new state.  */
   _FPU_SETCW (cw);
 
-  return 1;
+  return 0;
 }
 libm_hidden_def (fesetround)