This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Fix MIPS bits/mathdef.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Wed, 31 Jan 2007 17:07:30 +0000 (UTC)
- Subject: Fix MIPS bits/mathdef.h
MIPS has both float and double operations instead of x86-style excess
precision, so float_t in <bits/mathdef.h> should be defined as float not
double for MIPS.
2007-01-31 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/bits/mathdef.h (float_t): Change to float.
Index: sysdeps/mips/bits/mathdef.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/mips/bits/mathdef.h,v
retrieving revision 1.1
diff -u -r1.1 mathdef.h
--- sysdeps/mips/bits/mathdef.h 1 Feb 2006 02:59:58 -0000 1.1
+++ sysdeps/mips/bits/mathdef.h 31 Jan 2007 17:05:14 -0000
@@ -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'. */
--
Joseph S. Myers
joseph@codesourcery.com