about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-08-12 17:49:07 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-08-12 17:49:07 +0000
commit3f0eedddbe260aad3a7b88051d6aa2b205218aa9 (patch)
tree398c6fd56dea6113449d9fef5fd543b62ec1fce6
parent98dac0ce7641cb081f696cc80a22be7af6d62caa (diff)
downloadglibc-3f0eedddbe260aad3a7b88051d6aa2b205218aa9.tar.gz
glibc-3f0eedddbe260aad3a7b88051d6aa2b205218aa9.tar.xz
glibc-3f0eedddbe260aad3a7b88051d6aa2b205218aa9.zip
Add comment from sysdeps/powerpc/fpu/fraiseexcpt.c to fsetexcptflg.c.
	* sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
	comment from fraiseexcpt.c.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/powerpc/fpu/fsetexcptflg.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 58f4e1a32e..1e35b52ea2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
 
+	* sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
+	comment from fraiseexcpt.c.
+
 	* math/test-fexcept.c (feraiseexcept_exact): New function.
 	(test_set): Call feraiseexcept_exact instead of feraiseexcept.
 	(test_except): Likewise.
diff --git a/sysdeps/powerpc/fpu/fsetexcptflg.c b/sysdeps/powerpc/fpu/fsetexcptflg.c
index cb440d570d..70dd07c2de 100644
--- a/sysdeps/powerpc/fpu/fsetexcptflg.c
+++ b/sysdeps/powerpc/fpu/fsetexcptflg.c
@@ -36,6 +36,7 @@ __fesetexceptflag (const fexcept_t *flagp, int excepts)
     excepts_mask |= FE_ALL_INVALID;
   n.l = ((u.l & ~excepts_mask)
 	 | (flag & FPSCR_STICKY_BITS)
+	 /* Turn FE_INVALID into FE_INVALID_SOFTWARE.  */
 	 | (flag >> ((31 - FPSCR_VX) - (31 - FPSCR_VXSOFT))
 	    & FE_INVALID_SOFTWARE));