Clear the exception flags, not the enable flags.

This commit is contained in:
Ulrich Drepper 2001-04-25 18:27:55 +00:00
parent c9ae5095a4
commit aad4bb3a11
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ feclearexcept (int excepts)
__asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
/* Clear all the relevant bits. */
sw[0] &= ~(excepts & FE_ALL_EXCEPT);
sw[0] &= ~(excepts & FE_ALL_EXCEPT) << 27;
__asm__ ("fldd 0(%0),%%fr0" : : "r" (sw));
/* Success. */