summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/bits/mathdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/bits/mathdef.h')
-rw-r--r--libc/sysdeps/linux/powerpc/bits/mathdef.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/libc/sysdeps/linux/powerpc/bits/mathdef.h b/libc/sysdeps/linux/powerpc/bits/mathdef.h
index 5eaf41ea6..a076fb6d7 100644
--- a/libc/sysdeps/linux/powerpc/bits/mathdef.h
+++ b/libc/sysdeps/linux/powerpc/bits/mathdef.h
@@ -1,4 +1,5 @@
-/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,1999,2000,2003,2004,2006
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -39,12 +40,6 @@ typedef float float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Signal that types stay as they were declared. */
-# define FLT_EVAL_METHOD 0
-
-/* Define `INFINITY' as value of type `float'. */
-# define INFINITY HUGE_VALF
-
# else
/* For `gcc -traditional', `float' expressions are evaluated as `double'. */
@@ -53,9 +48,6 @@ typedef double float_t; /* `float' expressions are evaluated as
typedef double double_t; /* `double' expressions are evaluated as
`double'. */
-/* Define `INFINITY' as value of type `float'. */
-# define INFINITY HUGE_VALF
-
# endif
# else
@@ -63,9 +55,6 @@ typedef double double_t; /* `double' expressions are evaluated as
typedef double float_t;
typedef double double_t;
-/* Define `INFINITY' as value of type `float'. */
-# define INFINITY HUGE_VALF
-
# endif
/* The values returned by `ilogb' for 0 and NaN respectively. */
@@ -75,7 +64,12 @@ typedef double double_t;
#endif /* ISO C99 */
#ifndef __NO_LONG_DOUBLE_MATH
+#include <bits/wordsize.h>
/* Signal that we do not really have a `long double'. The disables the
declaration of all the `long double' function variants. */
-# define __NO_LONG_DOUBLE_MATH 1
+# if __WORDSIZE == 32
+# define __NO_LONG_DOUBLE_MATH 1
+# elif !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
+# define __NO_LONG_DOUBLE_MATH 1
+# endif
#endif