Skip to content

Commit 92d5a2e

Browse files
committed
Remove obsolete configure checks for isinf, isnan, and isfinite
1 parent 4845c3f commit 92d5a2e

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

Zend/Zend.m4

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ _LT_AC_TRY_DLOPEN_SELF([
148148
dnl Checks for library functions.
149149
AC_CHECK_FUNCS(getpid kill finite sigsetjmp)
150150
151-
AC_CHECK_DECLS([isfinite, isnan, isinf], [], [], [[#include <math.h>]])
152-
153151
ZEND_CHECK_FLOAT_PRECISION
154152
155153
dnl Test whether double cast to long preserves least significant bits.

configure.ac

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -71,36 +71,9 @@ extern "C++" {
7171
#else
7272
#include <math.h>
7373
74-
#ifndef zend_isnan
75-
#if HAVE_DECL_ISNAN
7674
#define zend_isnan(a) isnan(a)
77-
#elif defined(HAVE_FPCLASS)
78-
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
79-
#else
80-
#define zend_isnan(a) ((a) != (a))
81-
#endif
82-
#endif
83-
84-
#if HAVE_DECL_ISINF
8575
#define zend_isinf(a) isinf(a)
86-
#elif defined(INFINITY)
87-
/* Might not work, but is required by ISO C99 */
88-
#define zend_isinf(a) (((a)==INFINITY || (a)==-INFINITY)?1:0)
89-
#elif defined(HAVE_FPCLASS)
90-
#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
91-
#else
92-
#define zend_isinf(a) 0
93-
#endif
94-
95-
#if HAVE_DECL_ISFINITE
9676
#define zend_finite(a) isfinite(a)
97-
#elif defined(HAVE_FINITE)
98-
#define zend_finite(a) finite(a)
99-
#elif defined(fpclassify)
100-
#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
101-
#else
102-
#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
103-
#endif
10477
10578
#endif
10679
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */

0 commit comments

Comments
 (0)