/php-src/ext/intl/formatter/ |
H A D | formatter_format.c | 79 int64_t value = (Z_TYPE_P(number) == IS_DOUBLE)?(int64_t)Z_DVAL_P(number):Z_LVAL_P(number); in PHP_FUNCTION() 95 …formatted_len = unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_le… in PHP_FUNCTION() 99 …unum_formatDouble(FORMATTER_OBJECT(nfo), Z_DVAL_P(number), formatted, formatted_len, NULL, &INTL_D… in PHP_FUNCTION()
|
/php-src/Zend/ |
H A D | zend_operators.c | 985 return Z_DVAL_P(op); in zval_get_double_func() 1096 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in add_function_fast() 1162 ZVAL_DOUBLE(result, Z_DVAL_P(op1) - Z_DVAL_P(op2)); in sub_function_fast() 1231 ZVAL_DOUBLE(result, Z_DVAL_P(op1) * Z_DVAL_P(op2)); in mul_function_fast() 1345 ZVAL_DOUBLE(result, safe_pow(Z_DVAL_P(op1), Z_DVAL_P(op2))); in pow_function_base() 1417 if (Z_DVAL_P(op2) == 0) { in div_function_base() 1420 ZVAL_DOUBLE(result, Z_DVAL_P(op1) / Z_DVAL_P(op2)); in div_function_base() 2270 return ZEND_THREEWAY_COMPARE(Z_DVAL_P(op1), Z_DVAL_P(op2)); in zend_compare() 2405 return (Z_DVAL_P(op1) == Z_DVAL_P(op2)); in zend_is_identical() 2637 Z_DVAL_P(op1) = Z_DVAL_P(op1) + 1; in increment_function() [all …]
|
H A D | zend_operators.h | 324 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double() 409 if (Z_DVAL_P(op)) { in i_zend_is_true() 842 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function() 846 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function() 848 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
|
H A D | zend_vm_execute.h | 8903 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_HANDLER() 8915 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_JMPZ_HANDLER() 8927 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER() 8975 result = (Z_DVAL_P(op1) <= Z_DVAL_P(op2)); in ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_CONST_TMPVARCV_HANDLER() 8987 result = (Z_DVAL_P(op1) <= Z_DVAL_P(op2)); in ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_CONST_TMPVARCV_JMPZ_HANDLER() 13879 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_HANDLER() 13891 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_JMPZ_HANDLER() 13903 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_JMPNZ_HANDLER() 14785 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_TMPVARCV_HANDLER() 14797 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_TMPVARCV_JMPZ_HANDLER() [all …]
|
H A D | zend_vm_def.h | 64 d2 = Z_DVAL_P(op2); 69 d1 = Z_DVAL_P(op1); 70 d2 = Z_DVAL_P(op2); 76 d1 = Z_DVAL_P(op1); 9875 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); 9911 ZVAL_DOUBLE(result, Z_DVAL_P(op1) - Z_DVAL_P(op2)); 9949 ZVAL_DOUBLE(result, Z_DVAL_P(op1) * Z_DVAL_P(op2)); 9973 result = (Z_DVAL_P(op1) == Z_DVAL_P(op2)); 9997 result = (Z_DVAL_P(op1) != Z_DVAL_P(op2)); 10050 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); [all …]
|
H A D | zend_smart_str.c | 209 smart_str_append_double(dest, Z_DVAL_P(value), (int) EG(precision), true); in smart_str_append_scalar()
|
H A D | zend_ini_parser.y | 53 return (int)Z_DVAL_P(op); in get_int_val()
|
/php-src/ext/intl/msgformat/ |
H A D | msgformat_helpers.cpp | 480 if (UNEXPECTED(Z_DVAL_P(elem) > (double)INT32_MAX || in umsg_format_helper() 481 Z_DVAL_P(elem) < (double)INT32_MIN)) { in umsg_format_helper() 486 tInt32 = (int32_t)Z_DVAL_P(elem); in umsg_format_helper() 508 if (UNEXPECTED(Z_DVAL_P(elem) > (double)U_INT64_MAX || in umsg_format_helper() 509 Z_DVAL_P(elem) < (double)U_INT64_MIN)) { in umsg_format_helper() 514 tInt64 = (int64_t)Z_DVAL_P(elem); in umsg_format_helper() 556 formattable.setDouble(Z_DVAL_P(elem)); in umsg_format_helper()
|
/php-src/ext/standard/ |
H A D | math.c | 263 RETURN_DOUBLE(fabs(Z_DVAL_P(value))); in PHP_FUNCTION() 282 RETURN_DOUBLE(ceil(Z_DVAL_P(value))); in PHP_FUNCTION() 301 RETURN_DOUBLE(floor(Z_DVAL_P(value))); in PHP_FUNCTION() 950 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase() 1374 (Z_DVAL_P(num) >= 4503599627370496.0 || Z_DVAL_P(num) <= -4503599627370496.0) in PHP_FUNCTION() 1375 && ZEND_DOUBLE_FITS_LONG(Z_DVAL_P(num)) in PHP_FUNCTION() 1377 …RETURN_STR(_php_math_number_format_long((zend_long)Z_DVAL_P(num), dec, dec_point, dec_point_len, t… in PHP_FUNCTION() 1386 …RETURN_STR(_php_math_number_format_ex(Z_DVAL_P(num), dec_int, dec_point, dec_point_len, thousand_s… in PHP_FUNCTION()
|
H A D | var.c | 132 php_printf_unchecked("%sfloat(%.*H)\n", COMMON, (int) PG(serialize_precision), Z_DVAL_P(struc)); in php_var_dump() 323 php_printf_unchecked("float(%.*H)\n", (int) PG(serialize_precision), Z_DVAL_P(struc)); in php_debug_zval_dump() 541 buf, Z_DVAL_P(struc), (int) PG(serialize_precision), /* zero_fraction */ true); in php_var_export_ex() 1098 zend_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_serialize_intern()
|
H A D | http.c | 78 zend_string *tmp = zend_double_to_str(Z_DVAL_P(scalar)); in php_url_encode_scalar()
|
H A D | array.c | 1250 min_dval = Z_DVAL_P(min); in PHP_FUNCTION() 1305 lhs_dval = Z_DVAL_P(lhs); 1309 RETURN_COPY_VALUE(lhs_dval < Z_DVAL_P(rhs) ? lhs : rhs); 1378 max_dval = Z_DVAL_P(max); in PHP_FUNCTION() 1433 lhs_dval = Z_DVAL_P(lhs); 1437 RETURN_COPY_VALUE(lhs_dval >= Z_DVAL_P(rhs) ? lhs : rhs); 2899 *dval = Z_DVAL_P(input); 2975 step_double = Z_DVAL_P(user_step); 6943 RETVAL_BOOL(zend_hash_index_exists(ht, zend_dval_to_lval_safe(Z_DVAL_P(key))));
|
/php-src/ext/intl/common/ |
H A D | common_date.cpp | 197 rv = U_MILLIS_PER_SECOND * Z_DVAL_P(z); in intl_zval_to_millis()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 511 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_r_helper() 512 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_r_helper() 520 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in zend_jit_fetch_dim_r_helper() 653 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_is_helper() 654 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_is_helper() 781 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_isset_helper() 782 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_isset_helper() 889 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_rw_helper() 890 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_rw_helper() 1022 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_w_helper() [all …]
|
/php-src/Zend/Optimizer/ |
H A D | sccp.c | 185 …value) == IS_DOUBLE && Z_TYPE_P(new) == IS_DOUBLE && isnan(Z_DVAL_P(value)) && isnan(Z_DVAL_P(new)… in set_value() 374 zend_long lval = zend_dval_to_lval(Z_DVAL_P(op2)); in fetch_array_elem() 375 if (!zend_is_long_compatible(Z_DVAL_P(op2), lval)) { in fetch_array_elem() 462 zend_long lval = zend_dval_to_lval(Z_DVAL_P(key)); in ct_eval_del_array_elem() 463 if (!zend_is_long_compatible(Z_DVAL_P(key), lval)) { in ct_eval_del_array_elem() 507 zend_long lval = zend_dval_to_lval(Z_DVAL_P(key)); in ct_eval_add_array_elem() 508 if (!zend_is_long_compatible(Z_DVAL_P(key), lval)) { in ct_eval_add_array_elem()
|
H A D | dfa_pass.c | 1219 && Z_DVAL_P(zv) == 0.0)) { in zend_dfa_optimize_op_array() 1240 && Z_DVAL_P(zv) == 2.0 in zend_dfa_optimize_op_array() 1270 && Z_DVAL_P(zv) == 0.0)) { in zend_dfa_optimize_op_array() 1285 && Z_DVAL_P(zv) == 2.0 in zend_dfa_optimize_op_array()
|
/php-src/ext/dom/ |
H A D | nodelist.c | 264 ret.lval = zend_dval_to_lval_safe(Z_DVAL_P(offset)); in dom_modern_nodelist_get_index()
|
H A D | token_list.c | 296 return zend_dval_to_lval_safe(Z_DVAL_P(offset)); in dom_token_list_offset_convert_to_long()
|
/php-src/ext/json/ |
H A D | json_encoder.c | 681 if (php_json_is_valid_double(Z_DVAL_P(val))) { in php_json_encode_zval() 682 php_json_encode_double(buf, Z_DVAL_P(val), options); in php_json_encode_zval()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 681 spprintf(&decode, 0, "%.*G", 14, Z_DVAL_P(zv)); in phpdbg_short_zval_print() 684 if (zend_finite(Z_DVAL_P(zv)) && !strchr(decode, '.')) { in phpdbg_short_zval_print()
|
H A D | phpdbg_info.c | 270 VARIABLEINFO("\ndouble (%lf)", Z_DVAL_P(data)); in phpdbg_print_symbols()
|
/php-src/ext/sysvmsg/ |
H A D | sysvmsg.c | 404 message_len = spprintf(&p, 0, "%F", Z_DVAL_P(message)); in PHP_FUNCTION()
|
/php-src/ext/random/ |
H A D | randomizer.c | 198 if (UNEXPECTED(isnan(Z_DVAL_P(return_value)))) { in PHP_METHOD()
|
/php-src/ext/zend_test/ |
H A D | test.c | 305 RETURN_DOUBLE(Z_DVAL_P(input)); in ZEND_FUNCTION() 329 RETURN_DOUBLE(Z_DVAL_P(input)); in ZEND_FUNCTION()
|
/php-src/ext/pgsql/ |
H A D | pgsql.c | 4971 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 5021 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 5081 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 5119 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 5341 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 5591 smart_str_appendl(&querystr, buf, snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val))); in php_pgsql_insert() 5766 …smart_str_appendl(querystr, buf, MIN(snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val)), sizeof(buf) … in build_assignment_string()
|