about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-12-06 08:11:37 +0000
committerUlrich Drepper <drepper@redhat.com>2003-12-06 08:11:37 +0000
commitc2630c3abf76d29e8ec5fd2ccb32b43d1cacdf50 (patch)
tree621b289d214efa2f1ca137fece2eb84ef7c5bdbf /sysdeps
parent844a34a2ae4b493f86ed1e79c5992329b54a5511 (diff)
downloadglibc-c2630c3abf76d29e8ec5fd2ccb32b43d1cacdf50.tar.gz
glibc-c2630c3abf76d29e8ec5fd2ccb32b43d1cacdf50.tar.xz
glibc-c2630c3abf76d29e8ec5fd2ccb32b43d1cacdf50.zip
Update.
2003-12-04  Steven Munroe  <sjmunroe@us.ibm.com>

	* sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking
	of fenv.
	* sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/fpu/fgetexcptflg.c2
-rw-r--r--sysdeps/powerpc/nofpu/fgetexcptflg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/fpu/fgetexcptflg.c b/sysdeps/powerpc/fpu/fgetexcptflg.c
index ddd71f9d93..a652eb8e50 100644
--- a/sysdeps/powerpc/fpu/fgetexcptflg.c
+++ b/sysdeps/powerpc/fpu/fgetexcptflg.c
@@ -29,7 +29,7 @@ __fegetexceptflag (fexcept_t *flagp, int excepts)
   u.fenv = fegetenv_register ();
 
   /* Return (all of) it.  */
-  *flagp = u.l[1];
+  *flagp = u.l[1] & excepts & FE_ALL_EXCEPT;
 
   /* Success.  */
   return 0;
diff --git a/sysdeps/powerpc/nofpu/fgetexcptflg.c b/sysdeps/powerpc/nofpu/fgetexcptflg.c
index 9d4f078d23..713bd92881 100644
--- a/sysdeps/powerpc/nofpu/fgetexcptflg.c
+++ b/sysdeps/powerpc/nofpu/fgetexcptflg.c
@@ -24,7 +24,7 @@
 
 __fegetexceptflag (fexcept_t *flagp, int excepts)
 {
-  *flagp = (fexcept_t) __sim_exceptions;
+  *flagp = (fexcept_t) __sim_exceptions  & excepts & FE_ALL_EXCEPT;
 
   return 0;
 }