mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 03:31:07 +00:00
(fesetexceptflag): Set enable bits not raised exception bits.
This commit is contained in:
parent
2da72a511e
commit
c1f024c3e1
@ -29,8 +29,7 @@ fesetexceptflag (const fexcept_t *flagp, int excepts)
|
||||
/* Get the current status word. */
|
||||
__asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
|
||||
|
||||
/* Install the new exception flags bits. */
|
||||
sw[0] &= ~(excepts & (FE_ALL_EXCEPT >> 27));
|
||||
/* Install new enable trap bits */
|
||||
sw[0] |= (*flagp & excepts & FE_ALL_EXCEPT) << 27;
|
||||
|
||||
/* Store the new status word. */
|
||||
|
Loading…
Reference in New Issue
Block a user