From f0217d415dc04a7c588e48b393d119b7c933f427 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 16 Feb 2001 17:06:06 +0000 Subject: [PATCH] mathconf.h (FINITE_P, INFINITE_P): Remove macro definitions. * libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro definitions. From-SVN: r39767 --- libstdc++-v3/ChangeLog | 5 ++ libstdc++-v3/libmath/mathconf.h | 94 --------------------------------- 2 files changed, 5 insertions(+), 94 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ecfa31197e7..d869770e0fb 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2001-02-16 Gabriel Dos Reis + + * libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro + definitions. + 2001-02-15 Benjamin Kosnik * include/bits/c++config: Revert. diff --git a/libstdc++-v3/libmath/mathconf.h b/libstdc++-v3/libmath/mathconf.h index c66fca7e0bf..3f8344cd8b8 100644 --- a/libstdc++-v3/libmath/mathconf.h +++ b/libstdc++-v3/libmath/mathconf.h @@ -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" { -- 2.30.2