aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/fpu/fsetexcptflg.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-02-21 16:18:50 +0000
committerAndreas Jaeger <aj@suse.de>2003-02-21 16:18:50 +0000
commit2e585820919bfbd057be2c65483fc3e026c030b6 (patch)
tree1290e3b82456e7b517dbadbf8970fed683802a69 /sysdeps/x86_64/fpu/fsetexcptflg.c
parent59fed0e26d28ca0649de7bc3c4444f216caac5f3 (diff)
downloadglibc-2e585820919bfbd057be2c65483fc3e026c030b6.tar
glibc-2e585820919bfbd057be2c65483fc3e026c030b6.tar.gz
glibc-2e585820919bfbd057be2c65483fc3e026c030b6.tar.bz2
glibc-2e585820919bfbd057be2c65483fc3e026c030b6.zip
* sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Fix setting of default
mode. * sysdeps/x86_64/fpu/fsetexcptflg.c (fesetexceptflag): Do not clear whole mxcsr but only exceptions.
Diffstat (limited to 'sysdeps/x86_64/fpu/fsetexcptflg.c')
-rw-r--r--sysdeps/x86_64/fpu/fsetexcptflg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/fpu/fsetexcptflg.c b/sysdeps/x86_64/fpu/fsetexcptflg.c
index fc4a42cf31..fe1d40685c 100644
--- a/sysdeps/x86_64/fpu/fsetexcptflg.c
+++ b/sysdeps/x86_64/fpu/fsetexcptflg.c
@@ -1,5 +1,5 @@
/* Set floating-point environment exception handling.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -44,7 +44,7 @@ fesetexceptflag (const fexcept_t *flagp, int excepts)
/* And now the same for SSE. */
__asm__ ("stmxcsr %0" : "=m" (*&mxcsr));
- mxcsr &= (excepts & FE_ALL_EXCEPT);
+ mxcsr &= ~(excepts & FE_ALL_EXCEPT);
mxcsr |= *flagp & excepts & FE_ALL_EXCEPT;
__asm__ ("ldmxcsr %0" : : "m" (*&mxcsr));