summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/powerpc/bits/mathdef.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-09-17 10:34:22 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-09-18 11:45:44 -0700
commit1b513094fccea3300d964233fa843f1801bed012 (patch)
tree26c6f70a1af9d114035526a39130923706e991fd /libc/sysdeps/linux/powerpc/bits/mathdef.h
parent573dbc3460862ba0b68923d2b0163141f98ffe32 (diff)
downloaduClibc-alpine-1b513094fccea3300d964233fa843f1801bed012.tar.bz2
uClibc-alpine-1b513094fccea3300d964233fa843f1801bed012.tar.xz
always define float_t as float
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/powerpc/bits/mathdef.h')
-rw-r--r--libc/sysdeps/linux/powerpc/bits/mathdef.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/libc/sysdeps/linux/powerpc/bits/mathdef.h b/libc/sysdeps/linux/powerpc/bits/mathdef.h
index f28bacece..d6d35dda0 100644
--- a/libc/sysdeps/linux/powerpc/bits/mathdef.h
+++ b/libc/sysdeps/linux/powerpc/bits/mathdef.h
@@ -33,32 +33,12 @@
#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
# define _MATH_H_MATHDEF 1
-# ifdef __GNUC__
-# if __STDC__ == 1
-
-/* In GNU or ANSI mode, gcc leaves `float' expressions as-is. */
+/* PowerPC has both `float' and `double' arithmetic. */
typedef float float_t; /* `float' expressions are evaluated as
`float'. */
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-# else
-
-/* For `gcc -traditional', `float' expressions are evaluated as `double'. */
-typedef double float_t; /* `float' expressions are evaluated as
- `double'. */
-typedef double double_t; /* `double' expressions are evaluated as
- `double'. */
-
-# endif
-# else
-
-/* Wild guess at types for float_t and double_t. */
-typedef double 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)