]> granicus.if.org Git - php/commitdiff
Remove obsolete configure checks for isinf, isnan, and isfinite
authorGeorge Peter Banyard <girgias@php.net>
Wed, 4 Dec 2019 14:17:57 +0000 (15:17 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 4 Dec 2019 14:17:57 +0000 (15:17 +0100)
Zend/Zend.m4
configure.ac

index e06658de19451fb00df102e8962592ffedc83d37..fc4634580eceeccbbc5841c7772822c8f91c4a7a 100644 (file)
@@ -148,8 +148,6 @@ _LT_AC_TRY_DLOPEN_SELF([
 dnl Checks for library functions.
 AC_CHECK_FUNCS(getpid kill finite sigsetjmp)
 
-AC_CHECK_DECLS([isfinite, isnan, isinf], [], [], [[#include <math.h>]])
-
 ZEND_CHECK_FLOAT_PRECISION
 
 dnl Test whether double cast to long preserves least significant bits.
index 19927da6796372b17513c1af0f6e03a1f5aa1c61..2af5c49809083be8b23edbfaefb6e22e77fc8276 100644 (file)
@@ -71,36 +71,9 @@ extern "C++" {
 #else
 #include <math.h>
 
-#ifndef zend_isnan
-#if HAVE_DECL_ISNAN
 #define zend_isnan(a) isnan(a)
-#elif defined(HAVE_FPCLASS)
-#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
-#else
-#define zend_isnan(a) ((a) != (a))
-#endif
-#endif
-
-#if HAVE_DECL_ISINF
 #define zend_isinf(a) isinf(a)
-#elif defined(INFINITY)
-/* Might not work, but is required by ISO C99 */
-#define zend_isinf(a) (((a)==INFINITY || (a)==-INFINITY)?1:0)
-#elif defined(HAVE_FPCLASS)
-#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
-#else
-#define zend_isinf(a) 0
-#endif
-
-#if HAVE_DECL_ISFINITE
 #define zend_finite(a) isfinite(a)
-#elif defined(HAVE_FINITE)
-#define zend_finite(a) finite(a)
-#elif defined(fpclassify)
-#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
-#else
-#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
-#endif
 
 #endif
 #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */