about summary refs log tree commit diff
path: root/sysdeps/mips/fpu/fgetexcptflg.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-03-17 12:07:44 +0000
committerAndreas Jaeger <aj@suse.de>2002-03-17 12:07:44 +0000
commit9ea502f95ca8fb4e744e354030292d1c3f34a485 (patch)
treeeb0417a8f7c0cf1045390a0770a4822c93dcbd43 /sysdeps/mips/fpu/fgetexcptflg.c
parenteea4471dd408af985c2d5664ee908e3284097451 (diff)
downloadglibc-9ea502f95ca8fb4e744e354030292d1c3f34a485.tar.gz
glibc-9ea502f95ca8fb4e744e354030292d1c3f34a485.tar.xz
glibc-9ea502f95ca8fb4e744e354030292d1c3f34a485.zip
* sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
	* sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment.

	* sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause
	bits.

	* sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New.
	(CAUSE_SHIFT): New.
Diffstat (limited to 'sysdeps/mips/fpu/fgetexcptflg.c')
-rw-r--r--sysdeps/mips/fpu/fgetexcptflg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/mips/fpu/fgetexcptflg.c b/sysdeps/mips/fpu/fgetexcptflg.c
index d4bbfc3a2a..4f802afb40 100644
--- a/sysdeps/mips/fpu/fgetexcptflg.c
+++ b/sysdeps/mips/fpu/fgetexcptflg.c
@@ -1,5 +1,5 @@
 /* Store current representation for exceptions.
-   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 1998.
 
@@ -30,6 +30,10 @@ __fegetexceptflag (fexcept_t *flagp, int excepts)
   /* Get the current exceptions.  */
   _FPU_GETCW (temp);
 
+  /* It is important that the CAUSE bits are not saved here.  If they
+     were, a call to fesetexceptflag() would generate an
+     exception.  */
+
   *flagp = temp & excepts & FE_ALL_EXCEPT;
 
   /* Success.  */