/PHP-8.3/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-8.3/Zend/ |
H A D | zend_operators.c | 987 return Z_DVAL_P(op); in zval_get_double_func() 1098 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in add_function_fast() 1164 ZVAL_DOUBLE(result, Z_DVAL_P(op1) - Z_DVAL_P(op2)); in sub_function_fast() 1233 ZVAL_DOUBLE(result, Z_DVAL_P(op1) * Z_DVAL_P(op2)); in mul_function_fast() 1333 ZVAL_DOUBLE(result, pow(Z_DVAL_P(op1), Z_DVAL_P(op2))); in pow_function_base() 1402 if (Z_DVAL_P(op2) == 0) { in div_function_base() 1405 ZVAL_DOUBLE(result, Z_DVAL_P(op1) / Z_DVAL_P(op2)); in div_function_base() 2255 return ZEND_THREEWAY_COMPARE(Z_DVAL_P(op1), Z_DVAL_P(op2)); in zend_compare() 2390 return (Z_DVAL_P(op1) == Z_DVAL_P(op2)); in zend_is_identical() 2622 Z_DVAL_P(op1) = Z_DVAL_P(op1) + 1; in increment_function() [all …]
|
H A D | zend_vm_execute.h | 8561 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_HANDLER() 8573 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_JMPZ_HANDLER() 8585 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER() 8633 result = (Z_DVAL_P(op1) <= Z_DVAL_P(op2)); in ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_CONST_TMPVARCV_HANDLER() 8645 result = (Z_DVAL_P(op1) <= Z_DVAL_P(op2)); in ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_CONST_TMPVARCV_JMPZ_HANDLER() 13398 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_HANDLER() 13410 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_JMPZ_HANDLER() 13422 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_JMPNZ_HANDLER() 14304 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_TMPVARCV_HANDLER() 14316 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_TMPVARCV_JMPZ_HANDLER() [all …]
|
H A D | zend_operators.h | 315 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double() 400 if (Z_DVAL_P(op)) { in i_zend_is_true() 833 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function() 837 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function() 839 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
|
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); 9599 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); 9635 ZVAL_DOUBLE(result, Z_DVAL_P(op1) - Z_DVAL_P(op2)); 9673 ZVAL_DOUBLE(result, Z_DVAL_P(op1) * Z_DVAL_P(op2)); 9697 result = (Z_DVAL_P(op1) == Z_DVAL_P(op2)); 9721 result = (Z_DVAL_P(op1) != Z_DVAL_P(op2)); 9774 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); [all …]
|
H A D | zend_smart_str.c | 208 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()
|
H A D | zend_execute.c | 2356 value->lval = zend_dval_to_lval(Z_DVAL_P(dim)); in slow_index_convert() 2357 if (!zend_is_long_compatible(Z_DVAL_P(dim), value->lval)) { in slow_index_convert() 2363 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in slow_index_convert() 2426 value->lval = zend_dval_to_lval(Z_DVAL_P(dim)); in slow_index_convert_w() 2427 if (!zend_is_long_compatible(Z_DVAL_P(dim), value->lval)) { in slow_index_convert_w() 2433 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in slow_index_convert_w() 2909 hval = zend_dval_to_lval_safe(Z_DVAL_P(offset)); in zend_find_array_dim_slow() 3033 hval = zend_dval_to_lval_safe(Z_DVAL_P(key)); in zend_array_key_exists_fast()
|
H A D | zend_types.h | 965 #define Z_DVAL_P(zval_p) Z_DVAL(*(zval_p)) macro 1070 Z_DVAL_P(__z) = d; \
|
/PHP-8.3/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-8.3/ext/standard/ |
H A D | math.c | 217 RETURN_DOUBLE(fabs(Z_DVAL_P(value))); in PHP_FUNCTION() 240 RETURN_DOUBLE(ceil(Z_DVAL_P(value))); in PHP_FUNCTION() 259 RETURN_DOUBLE(floor(Z_DVAL_P(value))); in PHP_FUNCTION() 301 return_val = (Z_TYPE_P(value) == IS_LONG) ? (double)Z_LVAL_P(value) : Z_DVAL_P(value); in PHP_FUNCTION() 869 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase() 1284 …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 | http.c | 73 zend_string *tmp = zend_double_to_str(Z_DVAL_P(scalar)); in php_url_encode_scalar()
|
H A D | var.c | 118 php_printf_unchecked("%sfloat(%.*H)\n", COMMON, (int) PG(serialize_precision), Z_DVAL_P(struc)); in php_var_dump() 306 php_printf_unchecked("float(%.*H)\n", (int) PG(serialize_precision), Z_DVAL_P(struc)); in php_debug_zval_dump() 517 buf, Z_DVAL_P(struc), (int) PG(serialize_precision), /* zero_fraction */ true); in php_var_export_ex() 1050 zend_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_serialize_intern()
|
/PHP-8.3/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 417 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_r_helper() 418 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_r_helper() 426 zend_incompatible_double_to_long_error(Z_DVAL_P(dim)); in zend_jit_fetch_dim_r_helper() 559 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_is_helper() 560 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_is_helper() 687 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_isset_helper() 688 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_isset_helper() 795 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_rw_helper() 796 if (!zend_is_long_compatible(Z_DVAL_P(dim), hval)) { in zend_jit_fetch_dim_rw_helper() 928 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_w_helper() [all …]
|
/PHP-8.3/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-8.3/ext/json/ |
H A D | json_encoder.c | 647 if (php_json_is_valid_double(Z_DVAL_P(val))) { in php_json_encode_zval() 648 php_json_encode_double(buf, Z_DVAL_P(val), options); in php_json_encode_zval()
|
/PHP-8.3/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 | 1205 && Z_DVAL_P(zv) == 0.0)) { in zend_dfa_optimize_op_array() 1226 && Z_DVAL_P(zv) == 2.0 in zend_dfa_optimize_op_array() 1256 && Z_DVAL_P(zv) == 0.0)) { in zend_dfa_optimize_op_array() 1271 && Z_DVAL_P(zv) == 2.0 in zend_dfa_optimize_op_array()
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 680 spprintf(&decode, 0, "%.*G", 14, Z_DVAL_P(zv)); in phpdbg_short_zval_print() 683 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-8.3/ext/sysvmsg/ |
H A D | sysvmsg.c | 405 message_len = spprintf(&p, 0, "%F", Z_DVAL_P(message)); in PHP_FUNCTION()
|
/PHP-8.3/ext/random/ |
H A D | randomizer.c | 195 if (UNEXPECTED(isnan(Z_DVAL_P(return_value)))) { in PHP_METHOD()
|
/PHP-8.3/ext/zend_test/ |
H A D | test.c | 302 RETURN_DOUBLE(Z_DVAL_P(input)); in ZEND_FUNCTION() 326 RETURN_DOUBLE(Z_DVAL_P(input)); in ZEND_FUNCTION()
|
/PHP-8.3/ext/pgsql/ |
H A D | pgsql.c | 4671 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 4725 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 4785 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 4823 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 5086 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert() 5334 smart_str_appendl(&querystr, buf, snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val))); in php_pgsql_insert() 5507 …smart_str_appendl(querystr, buf, MIN(snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val)), sizeof(buf) … in build_assignment_string()
|
/PHP-8.3/ext/pdo_firebird/ |
H A D | firebird_statement.c | 730 var->sqldata = (void*)&Z_DVAL_P(parameter); in firebird_stmt_param_hook()
|