From d55bf1777c59c6a1d05ccc3b9f7d54299da770a9 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 31 Jan 2012 22:57:02 +0000 Subject: Always define float_t as float for PowerPC, SH and SPARC. --- sysdeps/sh/sh4/bits/mathdef.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'sysdeps/sh/sh4') diff --git a/sysdeps/sh/sh4/bits/mathdef.h b/sysdeps/sh/sh4/bits/mathdef.h index 5b92234983..74f76029b4 100644 --- a/sysdeps/sh/sh4/bits/mathdef.h +++ b/sysdeps/sh/sh4/bits/mathdef.h @@ -31,22 +31,10 @@ #if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF # define _MATH_H_MATHDEF 1 -# ifdef __GNUC__ - -/* gcc leaves `float' expressions as-is. */ -typedef float float_t; /* `float' expressions are evaluated as - `float'. */ -typedef double double_t; /* `double' expressions are evaluated as - `double'. */ - -# else - -/* Wild guess at types for float_t and double_t. */ -typedef double float_t; +/* SH has both `float' and `double' arithmetic. */ +typedef float float_t; typedef double double_t; -# endif - /* The values returned by `ilogb' for 0 and NaN respectively. */ # define FP_ILOGB0 0x80000001 # define FP_ILOGBNAN 0x7fffffff -- cgit v1.2.3