aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc/fpu/fesetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/sparc/fpu/fesetround.c')
-rw-r--r--sysdeps/sparc/fpu/fesetround.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/sparc/fpu/fesetround.c b/sysdeps/sparc/fpu/fesetround.c
index 74963d7573..4b65179842 100644
--- a/sysdeps/sparc/fpu/fesetround.c
+++ b/sysdeps/sparc/fpu/fesetround.c
@@ -26,12 +26,12 @@ fesetround (int round)
if ((round & ~__FE_ROUND_MASK) != 0)
/* ROUND is no valid rounding mode. */
- return 0;
+ return 1;
__fenv_stfsr (tmp);
tmp &= ~__FE_ROUND_MASK;
tmp |= round;
__fenv_ldfsr (tmp);
- return 1;
+ return 0;
}