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

[patches] Fix MIPS bits/mathdef.h



float_t in <bits/mathdef.h> should normally be float, except for a few 
processors with excess precision such as x86 and m68k that really don't 
have float operations.  I've applied this patch to fix the MIPS version.

Index: ports/sysdeps/mips/bits/mathdef.h
===================================================================
--- ports/sysdeps/mips/bits/mathdef.h	(revision 1338)
+++ ports/sysdeps/mips/bits/mathdef.h	(working copy)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004
+/* Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2007
 	Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -26,10 +26,9 @@
 #if defined  __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
 # define _MATH_H_MATHDEF	1
 
-/* Normally, there is no long double type and the `float' and `double'
-   expressions are evaluated as `double'.  */
-typedef double float_t;		/* `float' expressions are evaluated as
-				   `double'.  */
+/* MIPS has `float' and `double' operations.  */
+typedef float float_t;		/* `float' expressions are evaluated as
+				   `float'.  */
 typedef double double_t;	/* `double' expressions are evaluated as
 				   `double'.  */
 
Index: ports/ChangeLog.eglibc
===================================================================
--- ports/ChangeLog.eglibc	(revision 1338)
+++ ports/ChangeLog.eglibc	(working copy)
@@ -1,3 +1,7 @@
+2007-01-31  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/mips/bits/mathdef.h (float_t): Change to float.
+
 2007-01-24  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* sysdeps/powerpc/powerpc32/e500/fpu/tst-spepim.c: New.

-- 
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx