diff options
author | Andreas Jaeger <aj@suse.de> | 2002-03-17 12:07:44 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2002-03-17 12:07:44 +0000 |
commit | 9ea502f95ca8fb4e744e354030292d1c3f34a485 (patch) | |
tree | eb0417a8f7c0cf1045390a0770a4822c93dcbd43 /sysdeps/mips/fpu/fgetexcptflg.c | |
parent | eea4471dd408af985c2d5664ee908e3284097451 (diff) | |
download | glibc-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.c | 6 |
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. */ |