2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
* feholdexcept.h: Use *envp not env so we clear the proper bits in the fpscr, and don't set some random ones.
This commit is contained in:
@ -44,7 +44,7 @@ static __inline int _feholdexcept(fenv_t *envp)
|
||||
|
||||
fpscr = spu_mffpscr();
|
||||
*envp = __pack_fpscr(fpscr);
|
||||
env = env & ~FE_ALL_EXCEPT;
|
||||
env = *envp & ~FE_ALL_EXCEPT;
|
||||
spu_mtfpscr(__unpack_fpscr(env));
|
||||
return (0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user