diff options
author | Jakub Zelenka <bukka@php.net> | 2016-06-19 17:05:48 +0100 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-06-19 17:05:48 +0100 |
commit | e63a8540a60e95aa5bd8e269add1b02afcc1b79b (patch) | |
tree | b83a144eec24cc81adab0b9a778f7a730d8df79e /ext/standard/math.c | |
parent | 7a4cc73641bb3eb878f7184bcbd026ee663cf2a9 (diff) | |
parent | 53071e647049f099f7f7a0771ddb63fc2cdd621c (diff) | |
download | php-git-e63a8540a60e95aa5bd8e269add1b02afcc1b79b.tar.gz |
Merge branch 'openssl_error_store' into openssl_aead
Diffstat (limited to 'ext/standard/math.c')
-rw-r--r-- | ext/standard/math.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c index ebfee8ead8..688ae9f6d1 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; } |