OSDN Git Service

2007-04-25 Patrick Mansfield <patmans@us.ibm.com>
authorjjohnstn <jjohnstn>
Wed, 25 Apr 2007 17:36:32 +0000 (17:36 +0000)
committerjjohnstn <jjohnstn>
Wed, 25 Apr 2007 17:36:32 +0000 (17:36 +0000)
        * feholdexcept.h: Use *envp not env so we clear the proper bits in
        the fpscr, and don't set some random ones.

newlib/ChangeLog
newlib/libm/machine/spu/headers/feholdexcept.h

index 70db12e..880810c 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-25  Patrick Mansfield <patmans@us.ibm.com>
+
+       * libm/machine/spu/headers/feholdexcept.h: Use *envp not env so 
+       we clear the proper bits in the fpscr, and don't set some random ones.
+
 2007-04-24  Eric Blake  <ebb9@byu.net>
 
        * libc/stdio/vfprintf.c (_VFPRINTF_R): Don't zero pad on infinity
index d75695a..9f6bd52 100644 (file)
@@ -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);
 }