diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2017-06-19 12:55:59 +0300 |
| commit | 9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6 (patch) | |
| tree | 3eb7097ebb986594ae03e54142240fca4b82e5f3 /ext/standard/math.c | |
| parent | 6fe75aad6da55e7ce473109e219fdc80bf3b7a51 (diff) | |
| download | php-git-9c2a1f52a5f087c70a9e91dc1f43e5718d1bd8b6.tar.gz | |
Avoid useless dereferences and separations during paramter passing.
Diffstat (limited to 'ext/standard/math.c')
| -rw-r--r-- | ext/standard/math.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c index 794128be6c..6f7bede332 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -363,7 +363,7 @@ PHP_FUNCTION(round) double return_val; ZEND_PARSE_PARAMETERS_START(1, 3) - Z_PARAM_ZVAL_DEREF(value) + Z_PARAM_ZVAL(value) Z_PARAM_OPTIONAL Z_PARAM_LONG(precision) Z_PARAM_LONG(mode) @@ -627,8 +627,8 @@ PHP_FUNCTION(pow) zval *zbase, *zexp; ZEND_PARSE_PARAMETERS_START(2, 2) - Z_PARAM_ZVAL_DEREF_EX(zbase, 0, 1) - Z_PARAM_ZVAL_DEREF_EX(zexp, 0, 1) + Z_PARAM_ZVAL(zbase) + Z_PARAM_ZVAL(zexp) ZEND_PARSE_PARAMETERS_END(); pow_function(return_value, zbase, zexp); @@ -983,7 +983,7 @@ PHP_FUNCTION(bindec) zval *arg; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_ZVAL_DEREF(arg) + Z_PARAM_ZVAL(arg) ZEND_PARSE_PARAMETERS_END(); convert_to_string_ex(arg); @@ -1000,7 +1000,7 @@ PHP_FUNCTION(hexdec) zval *arg; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_ZVAL_DEREF(arg) + Z_PARAM_ZVAL(arg) ZEND_PARSE_PARAMETERS_END(); convert_to_string_ex(arg); @@ -1017,7 +1017,7 @@ PHP_FUNCTION(octdec) zval *arg; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_ZVAL_DEREF(arg) + Z_PARAM_ZVAL(arg) ZEND_PARSE_PARAMETERS_END(); convert_to_string_ex(arg); @@ -1035,7 +1035,7 @@ PHP_FUNCTION(decbin) zend_string *result; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_ZVAL_DEREF(arg) + Z_PARAM_ZVAL(arg) ZEND_PARSE_PARAMETERS_END(); convert_to_long_ex(arg); @@ -1052,7 +1052,7 @@ PHP_FUNCTION(decoct) zend_string *result; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_ZVAL_DEREF(arg) + Z_PARAM_ZVAL(arg) ZEND_PARSE_PARAMETERS_END(); convert_to_long_ex(arg); @@ -1069,7 +1069,7 @@ PHP_FUNCTION(dechex) zend_string *result; ZEND_PARSE_PARAMETERS_START(1, 1) - Z_PARAM_ZVAL_DEREF(arg) + Z_PARAM_ZVAL(arg) ZEND_PARSE_PARAMETERS_END(); convert_to_long_ex(arg); @@ -1087,7 +1087,7 @@ PHP_FUNCTION(base_convert) zend_string *result; ZEND_PARSE_PARAMETERS_START(3, 3) - Z_PARAM_ZVAL_DEREF(number) + Z_PARAM_ZVAL(number) Z_PARAM_LONG(frombase) Z_PARAM_LONG(tobase) ZEND_PARSE_PARAMETERS_END(); |
