diff options
author | Gabriel Dos Reis <gdr@codesourcery.com> | 2001-02-16 17:06:06 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2001-02-16 17:06:06 +0000 |
commit | f0217d415dc04a7c588e48b393d119b7c933f427 (patch) | |
tree | e9a221a7862e20621457ead82d6e6cfa4c825ce4 /libstdc++-v3 | |
parent | f5df2e8c0676008e9ab2c999f01054561bc2f826 (diff) | |
download | gcc-f0217d415dc04a7c588e48b393d119b7c933f427.zip gcc-f0217d415dc04a7c588e48b393d119b7c933f427.tar.gz gcc-f0217d415dc04a7c588e48b393d119b7c933f427.tar.bz2 |
mathconf.h (FINITE_P, INFINITE_P): Remove macro definitions.
* libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
definitions.
From-SVN: r39767
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/libmath/mathconf.h | 94 |
2 files changed, 5 insertions, 94 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index ecfa311..d869770 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/libmath/mathconf.h b/libstdc++-v3/libmath/mathconf.h index c66fca7..3f8344c 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" { |