(feclearexcept): Right shift FE_ALL_EXCEPT before complimenting.

This commit is contained in:
Ulrich Drepper 2003-12-18 03:56:15 +00:00
parent 69751d3f42
commit 4db359168e

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) << 27;
sw[0] &= ~((excepts & FE_ALL_EXCEPT) << 27);
__asm__ ("fldd 0(%0),%%fr0" : : "r" (sw));
/* Success. */