projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
802aef2
)
alpha: Fix fesetexceptflag (BZ 30998)
author
Bruno Haible
<bruno@clisp.org>
Thu, 2 Nov 2023 14:23:48 +0000
(11:23 -0300)
committer
Adhemerval Zanella
<adhemerval.zanella@linaro.org>
Tue, 19 Dec 2023 18:12:38 +0000
(15:12 -0300)
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>
sysdeps/alpha/fpu/fsetexcptflg.c
patch
|
blob
|
history
diff --git
a/sysdeps/alpha/fpu/fsetexcptflg.c
b/sysdeps/alpha/fpu/fsetexcptflg.c
index
70f3666
..
63eb068
100644
(file)
--- a/
sysdeps/alpha/fpu/fsetexcptflg.c
+++ b/
sysdeps/alpha/fpu/fsetexcptflg.c
@@
-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);