diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-16 17:06:06 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-16 17:06:06 +0000 |
commit | 3633ad42371c1387b9adb8dd0b9a7337d63bf882 (patch) | |
tree | e9a221a7862e20621457ead82d6e6cfa4c825ce4 /libstdc++-v3/libmath/mathconf.h | |
parent | 92a5032614bea30fbf033ff0dc34cf585348aa11 (diff) | |
download | gcc-3633ad42371c1387b9adb8dd0b9a7337d63bf882.tar.gz |
* libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
definitions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39767 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libmath/mathconf.h')
-rw-r--r-- | libstdc++-v3/libmath/mathconf.h | 94 |
1 files changed, 0 insertions, 94 deletions
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" { |