about summary refs log tree commit diff
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 342ed42318..fae74d33b6 100644
--- a/sysdeps/i386/fpu/fesetround.c
+++ b/sysdeps/i386/fpu/fesetround.c
@@ -43,8 +43,8 @@ fesetround (int round)
       unsigned int xcw;
 
       __asm__ ("stmxcsr %0" : "=m" (*&xcw));
-      cw &= ~0x6000;
-      cw |= round << 3;
+      xcw &= ~0x6000;
+      xcw |= round << 3;
       __asm__ ("ldmxcsr %0" : : "m" (*&xcw));
     }