Lines Matching refs:exponent

52 static zend_always_inline double php_round_get_basic_edge_case(double integral, double exponent, in…  in php_round_get_basic_edge_case()  argument
55 ? fabs((integral + copysign(0.5, integral)) / exponent) in php_round_get_basic_edge_case()
56 : fabs((integral + copysign(0.5, integral)) * exponent); in php_round_get_basic_edge_case()
59 static zend_always_inline double php_round_get_zero_edge_case(double integral, double exponent, int… in php_round_get_zero_edge_case() argument
62 ? fabs((integral) / exponent) in php_round_get_zero_edge_case()
63 : fabs((integral) * exponent); in php_round_get_zero_edge_case()
68 static inline double php_round_helper(double integral, double value, double exponent, int places, i… in php_round_helper() argument
74 edge_case = php_round_get_basic_edge_case(integral, exponent, places); in php_round_helper()
90 edge_case = php_round_get_basic_edge_case(integral, exponent, places); in php_round_helper()
98 edge_case = php_round_get_zero_edge_case(integral, exponent, places); in php_round_helper()
106 edge_case = php_round_get_zero_edge_case(integral, exponent, places); in php_round_helper()
117 edge_case = php_round_get_zero_edge_case(integral, exponent, places); in php_round_helper()
125 edge_case = php_round_get_basic_edge_case(integral, exponent, places); in php_round_helper()
142 edge_case = php_round_get_basic_edge_case(integral, exponent, places); in php_round_helper()
168 double exponent, tmp_value, tmp_value2; in _php_math_round() local
176 exponent = php_intpow10(abs(places)); in _php_math_round()
198 tmp_value = floor(places > 0 ? value * exponent : value / exponent); in _php_math_round()
201 tmp_value = ceil(places > 0 ? value * exponent : value / exponent); in _php_math_round()
205 if ((places > 0 ? tmp_value2 / exponent : tmp_value2 * exponent) == value) { in _php_math_round()
215 tmp_value = php_round_helper(tmp_value, value, exponent, places, mode); in _php_math_round()
220 tmp_value = tmp_value / exponent; in _php_math_round()
222 tmp_value = tmp_value * exponent; in _php_math_round()
1429 double base, exponent; in PHP_FUNCTION() local
1433 Z_PARAM_DOUBLE(exponent) in PHP_FUNCTION()
1436 RETURN_DOUBLE(pow(base, exponent)); in PHP_FUNCTION()