mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
Add comment from sysdeps/powerpc/fpu/fraiseexcpt.c to fsetexcptflg.c.
* sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add comment from fraiseexcpt.c.
This commit is contained in:
parent
98dac0ce76
commit
3f0eedddbe
@ -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.
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user