about summary refs log tree commit diff
path: root/sysdeps/powerpc/bits/mathdef.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-01-31 22:57:02 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-01-31 22:57:02 +0000
commitd55bf1777c59c6a1d05ccc3b9f7d54299da770a9 (patch)
treeedfddaca66dc7b3ca2b4439dd367d632efe0db07 /sysdeps/powerpc/bits/mathdef.h
parent69db4f8f463e509a3e5ccc00e70aa9f94c359d34 (diff)
downloadglibc-d55bf1777c59c6a1d05ccc3b9f7d54299da770a9.tar.gz
glibc-d55bf1777c59c6a1d05ccc3b9f7d54299da770a9.tar.xz
glibc-d55bf1777c59c6a1d05ccc3b9f7d54299da770a9.zip
Always define float_t as float for PowerPC, SH and SPARC.
Diffstat (limited to 'sysdeps/powerpc/bits/mathdef.h')
-rw-r--r--sysdeps/powerpc/bits/mathdef.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/sysdeps/powerpc/bits/mathdef.h b/sysdeps/powerpc/bits/mathdef.h
index 3a9b1b0459..c5eee15b72 100644
--- a/sysdeps/powerpc/bits/mathdef.h
+++ b/sysdeps/powerpc/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;
+/* PowerPC 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	(-2147483647)
 # define FP_ILOGBNAN	(2147483647)