mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Always define float_t as float for PowerPC, SH and SPARC.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2012-01-31 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
|
||||||
|
float.
|
||||||
|
* sysdeps/sh/sh4/bits/mathdef.h: Likewise.
|
||||||
|
* sysdeps/sparc/bits/mathdef.h: Likewise.
|
||||||
|
|
||||||
2012-01-31 Marek Polacek <polacek@redhat.com>
|
2012-01-31 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
* libio/libio.h: Don't define _PARAMS.
|
* libio/libio.h: Don't define _PARAMS.
|
||||||
|
@ -31,22 +31,10 @@
|
|||||||
#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
|
#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
|
||||||
# define _MATH_H_MATHDEF 1
|
# define _MATH_H_MATHDEF 1
|
||||||
|
|
||||||
# ifdef __GNUC__
|
/* PowerPC has both `float' and `double' arithmetic. */
|
||||||
|
typedef float float_t;
|
||||||
/* 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;
|
|
||||||
typedef double double_t;
|
typedef double double_t;
|
||||||
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/* The values returned by `ilogb' for 0 and NaN respectively. */
|
/* The values returned by `ilogb' for 0 and NaN respectively. */
|
||||||
# define FP_ILOGB0 (-2147483647)
|
# define FP_ILOGB0 (-2147483647)
|
||||||
# define FP_ILOGBNAN (2147483647)
|
# define FP_ILOGBNAN (2147483647)
|
||||||
|
@ -31,22 +31,10 @@
|
|||||||
#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
|
#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
|
||||||
# define _MATH_H_MATHDEF 1
|
# define _MATH_H_MATHDEF 1
|
||||||
|
|
||||||
# ifdef __GNUC__
|
/* SH has both `float' and `double' arithmetic. */
|
||||||
|
typedef float float_t;
|
||||||
/* 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;
|
|
||||||
typedef double double_t;
|
typedef double double_t;
|
||||||
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/* The values returned by `ilogb' for 0 and NaN respectively. */
|
/* The values returned by `ilogb' for 0 and NaN respectively. */
|
||||||
# define FP_ILOGB0 0x80000001
|
# define FP_ILOGB0 0x80000001
|
||||||
# define FP_ILOGBNAN 0x7fffffff
|
# define FP_ILOGBNAN 0x7fffffff
|
||||||
|
@ -29,20 +29,10 @@
|
|||||||
#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
|
#if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
|
||||||
# define _MATH_H_MATHDEF 1
|
# define _MATH_H_MATHDEF 1
|
||||||
|
|
||||||
# ifdef __GNUC__
|
/* SPARC has both `float' and `double' arithmetic. */
|
||||||
|
|
||||||
/* gcc leaves `float' expressions as-is. */
|
|
||||||
typedef float float_t;
|
typedef float float_t;
|
||||||
typedef double double_t;
|
typedef double double_t;
|
||||||
|
|
||||||
# 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. */
|
/* The values returned by `ilogb' for 0 and NaN respectively. */
|
||||||
# define FP_ILOGB0 (-2147483647)
|
# define FP_ILOGB0 (-2147483647)
|
||||||
# define FP_ILOGBNAN (2147483647)
|
# define FP_ILOGBNAN (2147483647)
|
||||||
|
Reference in New Issue
Block a user