about summary refs log tree commit diff
path: root/sysdeps/powerpc/fpu
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/powerpc/fpu
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/powerpc/fpu')
-rw-r--r--sysdeps/powerpc/fpu/fgetexcptflg.c2
1 files changed, 1 insertions, 1 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;