aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/fesetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/fesetround.c')
-rw-r--r--sysdeps/i386/fpu/fesetround.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/i386/fpu/fesetround.c b/sysdeps/i386/fpu/fesetround.c
index 844c586..9b5b089 100644
--- a/sysdeps/i386/fpu/fesetround.c
+++ b/sysdeps/i386/fpu/fesetround.c
@@ -27,12 +27,12 @@ fesetround (int round)
if ((round & ~0xc00) != 0)
/* ROUND is no valid rounding mode. */
- return 0;
+ return 1;
__asm__ ("fnstcw %0" : "=m" (*&cw));
cw &= ~0xc00;
cw |= round;
__asm__ ("fldcw %0" : : "m" (*&cw));
- return 1;
+ return 0;
}