Lines Matching refs:dval
388 double dval = Z_DVAL_P(op); in zendi_try_get_long() local
389 zend_long lval = zend_dval_to_lval(dval); in zendi_try_get_long()
390 if (!zend_is_long_compatible(dval, lval)) { in zendi_try_get_long()
391 zend_incompatible_double_to_long_error(dval); in zendi_try_get_long()
402 double dval; in zendi_try_get_long() local
406 type = is_numeric_string_ex(Z_STRVAL_P(op), Z_STRLEN_P(op), &lval, &dval, in zendi_try_get_long()
426 lval = zend_dval_to_lval_cap(dval); in zendi_try_get_long()
427 if (!zend_is_long_compatible(dval, lval)) { in zendi_try_get_long()
916 double dval = Z_DVAL_P(op); in zval_get_long_func() local
917 zend_long lval = zend_dval_to_lval(dval); in zval_get_long_func()
919 if (!zend_is_long_compatible(dval, lval)) { in zval_get_long_func()
920 zend_incompatible_double_to_long_error(dval); in zval_get_long_func()
929 double dval; in zval_get_long_func() local
930 if (0 == (type = is_numeric_string(Z_STRVAL_P(op), Z_STRLEN_P(op), &lval, &dval, true))) { in zval_get_long_func()
941 lval = zend_dval_to_lval_cap(dval); in zval_get_long_func()
943 if (!zend_is_long_compatible(dval, lval)) { in zval_get_long_func()
1320 double dval = 0.0; in pow_function_base() local
1324 ZEND_SIGNED_MULTIPLY_LONG(l1, l2, l1, dval, overflow); in pow_function_base()
1326 ZVAL_DOUBLE(result, dval * safe_pow(l2, i)); in pow_function_base()
1331 ZEND_SIGNED_MULTIPLY_LONG(l2, l2, l2, dval, overflow); in pow_function_base()
1333 ZVAL_DOUBLE(result, (double)l1 * safe_pow(dval, i)); in pow_function_base()
2231 static int compare_double_to_string(double dval, zend_string *str) /* {{{ */ in compare_double_to_string() argument
2238 return ZEND_THREEWAY_COMPARE(dval, (double) str_lval); in compare_double_to_string()
2242 return ZEND_THREEWAY_COMPARE(dval, str_dval); in compare_double_to_string()
2245 zend_string *dval_as_str = zend_double_to_str(dval); in compare_double_to_string()
2660 double dval; in increment_function() local
2662 switch (is_numeric_str_function(Z_STR_P(op1), &lval, &dval)) { in increment_function()
2675 ZVAL_DOUBLE(op1, dval+1); in increment_function()
2733 double dval; in decrement_function() local
2754 switch (is_numeric_str_function(Z_STR_P(op1), &lval, &dval)) { in decrement_function()
2766 ZVAL_DOUBLE(op1, dval - 1); in decrement_function()
3532 …D_FASTCALL is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval) /* {{{ */ argument
3534 return is_numeric_string(ZSTR_VAL(str), ZSTR_LEN(str), lval, dval, false);
3539 double *dval, bool allow_errors, int *oflow_info, bool *trailing_data) /* {{{ */ argument
3583 for (type = IS_LONG; !(digits >= MAX_LENGTH_OF_LONG && (dval || allow_errors)); digits++, ptr++) {
3617 if (dval) {
3648 if (dval) {
3649 *dval = zend_strtod(str, NULL);
3668 if (dval) {
3669 *dval = local_dval;