mirror of git://sourceware.org/git/glibc.git
(feclearexcept): Right shift FE_ALL_EXCEPT before complimenting.
This commit is contained in:
parent
69751d3f42
commit
4db359168e
|
@ -29,7 +29,7 @@ feclearexcept (int excepts)
|
||||||
__asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
|
__asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
|
||||||
|
|
||||||
/* Clear all the relevant bits. */
|
/* 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));
|
__asm__ ("fldd 0(%0),%%fr0" : : "r" (sw));
|
||||||
|
|
||||||
/* Success. */
|
/* Success. */
|
||||||
|
|
Loading…
Reference in New Issue