Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-04-25 21:36:32 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-04-25 21:36:32 +0400
commit245240b5e94104360595d6a334718d63bb421931 (patch)
tree5380417798493269e1ed0b878977bd1420b04b98 /newlib/libm
parent5866c02352c6af65c871a59fee1ccca3c8bebb7b (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')
-rw-r--r--newlib/libm/machine/spu/headers/feholdexcept.h2
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);
}