diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-04-25 21:36:32 +0400 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-04-25 21:36:32 +0400 |
commit | 245240b5e94104360595d6a334718d63bb421931 (patch) | |
tree | 5380417798493269e1ed0b878977bd1420b04b98 /newlib/libm/machine | |
parent | 5866c02352c6af65c871a59fee1ccca3c8bebb7b (diff) |
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.
Diffstat (limited to 'newlib/libm/machine')
-rw-r--r-- | newlib/libm/machine/spu/headers/feholdexcept.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/machine/spu/headers/feholdexcept.h b/newlib/libm/machine/spu/headers/feholdexcept.h index d75695afa..9f6bd521b 100644 --- a/newlib/libm/machine/spu/headers/feholdexcept.h +++ b/newlib/libm/machine/spu/headers/feholdexcept.h @@ -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); } |