[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] MIPS fesetround fix



I've backported this patch from glibc trunk to the 2.5, 2.6, and 2.7
EGLIBC branches (it's already on trunk via merge).

-- 
Daniel Jacobowitz
CodeSourcery

2008-03-26  David Stephenson  <david.stephenson@xxxxxxxxxxxx>
	    Daniel Jacobowitz  <dan@xxxxxxxxxxxxxxxx>

	* sysdeps/mips/fpu/fesetround.c (fesetround): Use fpu_control_t.
	* sysdeps/mips/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
	* sysdeps/mips/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.

diff -urp -x .svn ports-2_7/sysdeps/mips/fpu/fesetround.c ports-trunk/sysdeps/mips/fpu/fesetround.c
--- ports-2_7/sysdeps/mips/fpu/fesetround.c	2007-08-06 06:57:06.000000000 -0700
+++ ports-trunk/sysdeps/mips/fpu/fesetround.c	2008-03-28 11:03:54.000000000 -0700
@@ -24,7 +24,7 @@
 int
 fesetround (int round)
 {
-  unsigned short int cw;
+  fpu_control_t cw;
 
   if ((round & ~0x3) != 0)
     /* ROUND is no valid rounding mode.  */
diff -urp -x .svn ports-2_7/sysdeps/mips/fpu/fgetexcptflg.c ports-trunk/sysdeps/mips/fpu/fgetexcptflg.c
--- ports-2_7/sysdeps/mips/fpu/fgetexcptflg.c	2007-08-06 06:57:06.000000000 -0700
+++ ports-trunk/sysdeps/mips/fpu/fgetexcptflg.c	2008-03-28 11:03:54.000000000 -0700
@@ -24,7 +24,7 @@
 int
 fegetexceptflag (fexcept_t *flagp, int excepts)
 {
-  fexcept_t temp;
+  fpu_control_t temp;
 
   /* Get the current exceptions.  */
   _FPU_GETCW (temp);
diff -urp -x .svn ports-2_7/sysdeps/mips/fpu/fsetexcptflg.c ports-trunk/sysdeps/mips/fpu/fsetexcptflg.c
--- ports-2_7/sysdeps/mips/fpu/fsetexcptflg.c	2007-08-06 06:57:06.000000000 -0700
+++ ports-trunk/sysdeps/mips/fpu/fsetexcptflg.c	2008-03-28 11:03:54.000000000 -0700
@@ -24,7 +24,7 @@
 int
 fesetexceptflag (const fexcept_t *flagp, int excepts)
 {
-  fexcept_t temp;
+  fpu_control_t temp;
 
   /* Get the current exceptions.  */
   _FPU_GETCW (temp);