Home
last modified time | relevance | path

Searched refs:Z_DVAL_P (Results 1 – 25 of 44) sorted by relevance

12

/PHP-8.3/ext/intl/formatter/
H A Dformatter_format.c79 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 Dzend_operators.c987 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 Dzend_vm_execute.h8561 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 Dzend_operators.h315 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 Dzend_vm_def.h64 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 Dzend_smart_str.c208 smart_str_append_double(dest, Z_DVAL_P(value), (int) EG(precision), true); in smart_str_append_scalar()
H A Dzend_ini_parser.y53 return (int)Z_DVAL_P(op); in get_int_val()
H A Dzend_execute.c2356 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 Dzend_types.h965 #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 Dmsgformat_helpers.cpp480 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 Dmath.c217 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 Dhttp.c73 zend_string *tmp = zend_double_to_str(Z_DVAL_P(scalar)); in php_url_encode_scalar()
H A Dvar.c118 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 Dzend_jit_helpers.c417 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 Dcommon_date.cpp197 rv = U_MILLIS_PER_SECOND * Z_DVAL_P(z); in intl_zval_to_millis()
/PHP-8.3/ext/json/
H A Djson_encoder.c647 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 Dsccp.c185 …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 Ddfa_pass.c1205 && 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 Dphpdbg_utils.c680 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 Dphpdbg_info.c270 VARIABLEINFO("\ndouble (%lf)", Z_DVAL_P(data)); in phpdbg_print_symbols()
/PHP-8.3/ext/sysvmsg/
H A Dsysvmsg.c405 message_len = spprintf(&p, 0, "%F", Z_DVAL_P(message)); in PHP_FUNCTION()
/PHP-8.3/ext/random/
H A Drandomizer.c195 if (UNEXPECTED(isnan(Z_DVAL_P(return_value)))) { in PHP_METHOD()
/PHP-8.3/ext/zend_test/
H A Dtest.c302 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 Dpgsql.c4671 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 Dfirebird_statement.c730 var->sqldata = (void*)&Z_DVAL_P(parameter); in firebird_stmt_param_hook()

Completed in 282 milliseconds

12