mathconf.h (FINITE_P, INFINITE_P): Remove macro definitions.

* libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
	definitions.

From-SVN: r39767
This commit is contained in:
Gabriel Dos Reis 2001-02-16 17:06:06 +00:00 committed by Gabriel Dos Reis
parent f5df2e8c06
commit f0217d415d
2 changed files with 5 additions and 94 deletions

View File

@ -1,3 +1,8 @@
2001-02-16 Gabriel Dos Reis <gdr@codesourcery.com>
* libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
definitions.
2001-02-15 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/c++config: Revert.

View File

@ -128,100 +128,6 @@ double nan (void);
# define M_PI 3.14159265358979323846
#endif
/* Test whether number is finite. */
#ifdef isfinite
/* This is an ISO C99 function. */
# define FINITE_P(X) isfinite (X)
# define FINITEF_P(X) isfinite (X)
# define FINITEL_P(X) isfinite (X)
#else
# ifdef IsNANorINF
/* This is for Solaris, which does not have special macros for other
types. */
# define FINITE_P(X) (!IsNANorINF (X))
# define FINITEF_P(X) (!IsNANorINF (X))
# define FINITEL_P(X) (!IsNANorINF (X))
# else
# if defined _GLIBCPP_HAVE_ISINF && defined _GLIBCPP_HAVE_ISNAN
# define FINITE_P(X) ({ double __x = (X); !isinf (__x) && !isnan (__x); })
# else
# ifdef _GLIBCPP_HAVE_FINITE
# define FINITE_P(X) finite (X)
# else
# error "We need FINITE_P"
# endif
# endif
# if defined _GLIBCPP_HAVE_ISINFF && defined _GLIBCPP_HAVE_ISNANF
# define FINITEF_P(X) ({ float __x = (X); !isinff (__x) && !isnanf (__x); })
# else
# ifdef _GLIBCPP_HAVE_FINITE
# define FINITEF_P(X) finite (X)
# else
# define FINITEF_P(X) FINITE_P (X)
# endif
# endif
# if defined _GLIBCPP_HAVE_ISINFL && defined _GLIBCPP_HAVE_ISNANL
# define FINITEL_P(X) ({ long double __x = (X); \
!isinfl (__x) && !isnanl (__x); })
# else
# ifdef _GLIBCPP_HAVE_QFINITE
# define FINITEL_P(X) qfinite (X)
# else
# define FINITEL_P(X) FINITE_P (X)
# endif
# endif
# endif
#endif
/* Test whether number is infinite. */
#ifdef isinf
/* This is an ISO C99 macro. */
# define INFINITE_P(X) isinf (X)
# define INFINITEF_P(X) isinf (X)
# define INFINITEL_P(X) isinf (X)
#else
# ifdef IsINF
/* This is for Solaris, which does not have special macros for other
types. */
# define INFINITE_P(X) IsINF (X)
# define INFINITEF_P(X) IsINF (X)
# define INFINITEL_P(X) IsINF (X)
# else
# if defined _GLIBCPP_HAVE_ISINF
# define INFINITE_P(X) isinf (X)
# else
# ifdef _GLIBCPP_HAVE_FPCLASS
# ifdef _FPCLASS_PINF
/* Mingw defines _FPCLASS_PINF. */
# define FP_PINF _FPCLASS_PINF
# endif
/* This is for Irix and Mingw. */
# define INFINITE_P(X) (fpclass (fabs (X)) == FP_PINF)
# else
# ifdef IS_INF
/* This is for AIX. */
# define INFINITE_P(X) ({ double __d = (X); IS_INF (__d); })
# else
# error "We need INFINITE_P"
# endif
# endif
# endif
# if defined _GLIBCPP_HAVE_ISINFF
# define INFINITEF_P(X) isinff (X)
# else
# define INFINITEF_P(X) INFINITE_P (X)
# endif
# if defined _GLIBCPP_HAVE_ISINFL
# define INFINITEL_P(X) isinfl (X)
# else
# ifdef _GLIBCPP_HAVE_QFPCLASS
# define INFINITEL_P(X) (qfpclass (fabsl (X)) == FP_PINF)
# else
# define INFINITEL_P(X) INFINITE_P (X)
# endif
# endif
# endif
#endif
#ifdef __cplusplus
extern "C" {