From 245240b5e94104360595d6a334718d63bb421931 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 25 Apr 2007 17:36:32 +0000 Subject: 2007-04-25 Patrick Mansfield * feholdexcept.h: Use *envp not env so we clear the proper bits in the fpscr, and don't set some random ones. --- newlib/libm/machine/spu/headers/feholdexcept.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libm') 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); } -- cgit v1.2.3