com php-src: Replace php_math_is_finite with zend_f inite: ext/standard/math.c

From: Date: Sun, 20 Mar 2016 00:15:39 +0000
Subject: com php-src: Replace php_math_is_finite with zend_f inite: ext/standard/math.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91421@lists.php.net to get a copy of this message
Commit: ba4b2a60f932b05c929b843aaf010ac740579e2d Author: Andrea Faulds <ajf@ajf.me> Sun, 20 Mar 2016 00:15:39 +0000 Parents: e8f056e535813bf864743626c3a208ceafee70b9 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ba4b2a60f932b05c929b843aaf010ac740579e2d Log: Replace php_math_is_finite with zend_finite Changed paths: M ext/standard/math.c Diff: diff --git a/ext/standard/math.c b/ext/standard/math.c index ebfee8e..688ae9f 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -93,18 +93,6 @@ static inline double php_intpow10(int power) { } /* }}} */ -/* {{{ php_math_is_finite */ -static inline int php_math_is_finite(double value) { -#if defined(PHP_WIN32) - return _finite(value); -#elif defined(isfinite) - return isfinite(value); -#else - return value == value && (value == 0. || value * 2. != value); -#endif -} -/* }}} */ - /* {{{ php_round_helper Actually performs the rounding of a value to integer in a certain mode */ static inline double php_round_helper(double value, int mode) { @@ -142,7 +130,7 @@ PHPAPI double _php_math_round(double value, int places, int mode) { double tmp_value; int precision_places; - if (!php_math_is_finite(value)) { + if (!zend_finite(value)) { return value; }

« previous php.cvs (#91421) next »