Lines Matching refs:tmp_value

96 	double tmp_value;  in php_round_helper()  local
99 tmp_value = floor(value + 0.5); in php_round_helper()
100 if ((mode == PHP_ROUND_HALF_DOWN && value == (-0.5 + tmp_value)) || in php_round_helper()
101 (mode == PHP_ROUND_HALF_EVEN && value == (0.5 + 2 * floor(tmp_value/2.0))) || in php_round_helper()
102 (mode == PHP_ROUND_HALF_ODD && value == (0.5 + 2 * floor(tmp_value/2.0) - 1.0))) in php_round_helper()
104 tmp_value = tmp_value - 1.0; in php_round_helper()
107 tmp_value = ceil(value - 0.5); in php_round_helper()
108 if ((mode == PHP_ROUND_HALF_DOWN && value == (0.5 + tmp_value)) || in php_round_helper()
109 (mode == PHP_ROUND_HALF_EVEN && value == (-0.5 + 2 * ceil(tmp_value/2.0))) || in php_round_helper()
110 (mode == PHP_ROUND_HALF_ODD && value == (-0.5 + 2 * ceil(tmp_value/2.0) + 1.0))) in php_round_helper()
112 tmp_value = tmp_value + 1.0; in php_round_helper()
116 return tmp_value; in php_round_helper()
127 double tmp_value; in _php_math_round() local
147 tmp_value = value * f2; in _php_math_round()
149 tmp_value = value / f2; in _php_math_round()
153 tmp_value = php_round_helper(tmp_value, mode); in _php_math_round()
160 tmp_value = tmp_value / f2; in _php_math_round()
164 tmp_value = value * f1; in _php_math_round()
166 tmp_value = value / f1; in _php_math_round()
169 if (fabs(tmp_value) >= 1e15) { in _php_math_round()
175 tmp_value = php_round_helper(tmp_value, mode); in _php_math_round()
180 tmp_value = tmp_value / f1; in _php_math_round()
182 tmp_value = tmp_value * f1; in _php_math_round()
194 snprintf(buf, 39, "%15fe%d", tmp_value, -places); in _php_math_round()
196 tmp_value = zend_strtod(buf, NULL); in _php_math_round()
198 if (!zend_finite(tmp_value) || zend_isnan(tmp_value)) { in _php_math_round()
199 tmp_value = value; in _php_math_round()
203 return tmp_value; in _php_math_round()