mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
alpha: Fix fesetexceptflag (BZ 30998)
It clears some exception flags that are outside the EXCEPTS argument. It fixes math/test-fexcept on qemu-user. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
802aef27b2
commit
80a40a9e14
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ __fesetexceptflag (const fexcept_t *flagp, int excepts)
|
|||
tmp = __ieee_get_fp_control ();
|
||||
|
||||
/* Set all the bits that were called for. */
|
||||
tmp = (tmp & ~SWCR_STATUS_MASK) | (*flagp & excepts & SWCR_STATUS_MASK);
|
||||
tmp ^= (tmp ^ *flagp) & excepts & SWCR_STATUS_MASK;
|
||||
|
||||
/* And store it back. */
|
||||
__ieee_set_fp_control (tmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue