about summary refs log tree commit diff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-02-09 08:21:19 +0000
committerUlrich Drepper <drepper@redhat.com>2004-02-09 08:21:19 +0000
commitff136edd32fb0d55d73032ff3d565794e601a398 (patch)
tree5b8fb10d205deb9fcbe65c62171292f9d7c5c5b0 /sysdeps/i386
parent9e59d9cbd2572856bfaabaaa69ef0d06d7dd49c1 (diff)
downloadglibc-ff136edd32fb0d55d73032ff3d565794e601a398.tar.gz
glibc-ff136edd32fb0d55d73032ff3d565794e601a398.tar.xz
glibc-ff136edd32fb0d55d73032ff3d565794e601a398.zip
[BZ #10]
Update.
2004-02-09  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Don't touch bits
	other than the status bits [BZ #10].
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/fpu/fclrexcpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/i386/fpu/fclrexcpt.c b/sysdeps/i386/fpu/fclrexcpt.c
index 0873ad9cca..0e66d87e16 100644
--- a/sysdeps/i386/fpu/fclrexcpt.c
+++ b/sysdeps/i386/fpu/fclrexcpt.c
@@ -1,5 +1,5 @@
 /* Clear given exceptions in current floating-point environment.
-   Copyright (C) 1997,99,2000, 2001, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1997,99,2000, 2001, 2003, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -50,7 +50,7 @@ __feclearexcept (int excepts)
       __asm__ ("stmxcsr %0" : "=m" (*&xnew_exc));
 
       /* Clear the relevant bits.  */
-      xnew_exc &= excepts ^ FE_ALL_EXCEPT;
+      xnew_exc &= ~excepts;
 
       /* Put the new data in effect.  */
       __asm__ ("ldmxcsr %0" : : "m" (*&xnew_exc));