Home
last modified time | relevance | path

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

12

/PHP-8.0/Zend/
H A Dzend_operators.c860 return Z_DVAL_P(op); in zval_get_double_func()
974 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in add_function_fast()
1040 ZVAL_DOUBLE(result, Z_DVAL_P(op1) - Z_DVAL_P(op2)); in sub_function_fast()
1109 ZVAL_DOUBLE(result, Z_DVAL_P(op1) * Z_DVAL_P(op2)); in mul_function_fast()
1209 ZVAL_DOUBLE(result, pow(Z_DVAL_P(op1), Z_DVAL_P(op2))); in pow_function_base()
1281 ZVAL_DOUBLE(result, Z_DVAL_P(op1) / Z_DVAL_P(op2)); in div_function_base()
2081 if (Z_DVAL_P(op1) == Z_DVAL_P(op2)) { in zend_compare()
2084 return ZEND_NORMALIZE_BOOL(Z_DVAL_P(op1) - Z_DVAL_P(op2)); in zend_compare()
2220 return (Z_DVAL_P(op1) == Z_DVAL_P(op2)); in zend_is_identical()
2419 Z_DVAL_P(op1) = Z_DVAL_P(op1) + 1; in increment_function()
[all …]
H A Dzend_operators.h269 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double()
354 if (Z_DVAL_P(op)) { in i_zend_is_true()
737 ZVAL_DOUBLE(result, ((double)Z_LVAL_P(op1)) + Z_DVAL_P(op2)); in fast_add_function()
742 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2)); in fast_add_function()
745 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + ((double)Z_LVAL_P(op2))); in fast_add_function()
856 return ((double)Z_LVAL_P(op1)) == Z_DVAL_P(op2); in fast_equal_check_function()
860 return Z_DVAL_P(op1) == Z_DVAL_P(op2); in fast_equal_check_function()
862 return Z_DVAL_P(op1) == ((double)Z_LVAL_P(op2)); in fast_equal_check_function()
H A Dzend_vm_execute.h8011 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_HANDLER()
8023 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
8035 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER()
8083 result = (Z_DVAL_P(op1) <= Z_DVAL_P(op2)); in ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_CONST_TMPVARCV_HANDLER()
8095 result = (Z_DVAL_P(op1) <= Z_DVAL_P(op2)); in ZEND_IS_SMALLER_OR_EQUAL_DOUBLE_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
12829 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_HANDLER()
12841 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_JMPZ_HANDLER()
12853 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_CONST_JMPNZ_HANDLER()
13735 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_TMPVARCV_HANDLER()
13747 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2)); in ZEND_IS_SMALLER_DOUBLE_SPEC_TMPVARCV_TMPVARCV_JMPZ_HANDLER()
[all …]
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);
9229 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2));
9265 ZVAL_DOUBLE(result, Z_DVAL_P(op1) - Z_DVAL_P(op2));
9303 ZVAL_DOUBLE(result, Z_DVAL_P(op1) * Z_DVAL_P(op2));
9327 result = (Z_DVAL_P(op1) == Z_DVAL_P(op2));
9351 result = (Z_DVAL_P(op1) != Z_DVAL_P(op2));
9404 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2));
[all …]
H A Dzend_ini_parser.y52 return (int)Z_DVAL_P(op); in get_int_val()
H A Dzend_types.h799 #define Z_DVAL_P(zval_p) Z_DVAL(*(zval_p)) macro
904 Z_DVAL_P(__z) = d; \
H A Dzend_exceptions.c523 smart_str_append_printf(str, "%.*G", (int) EG(precision), Z_DVAL_P(arg)); in _build_trace_args()
/PHP-8.0/ext/spl/
H A Dspl_engine.c44 return zend_dval_to_lval(Z_DVAL_P(offset)); in spl_offset_convert_to_long()
H A Dspl_array.c345 index = (zend_long)Z_DVAL_P(offset); in spl_array_get_dimension_ptr()
477 index = (zend_long)Z_DVAL_P(offset); in spl_array_write_dimension_ex()
565 index = (zend_long)Z_DVAL_P(offset); in spl_array_unset_dimension_ex()
638 index = (zend_long)Z_DVAL_P(offset); in spl_array_has_dimension_ex()
/PHP-8.0/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.0/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp480 if (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 (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.0/ext/standard/
H A Dmath.c218 RETURN_DOUBLE(fabs(Z_DVAL_P(value))); in PHP_FUNCTION()
241 RETURN_DOUBLE(ceil(Z_DVAL_P(value))); in PHP_FUNCTION()
260 RETURN_DOUBLE(floor(Z_DVAL_P(value))); in PHP_FUNCTION()
306 return_val = (Z_TYPE_P(value) == IS_LONG) ? (double)Z_LVAL_P(value) : Z_DVAL_P(value); in PHP_FUNCTION()
874 double fvalue = floor(Z_DVAL_P(arg)); /* floor it just in case */ in _php_math_zvaltobase()
H A Dvar.c116 php_printf_unchecked("%sfloat(%.*H)\n", COMMON, (int) PG(serialize_precision), Z_DVAL_P(struc)); in php_var_dump()
297 php_printf_unchecked("%sfloat(%.*H)\n", COMMON, (int) PG(serialize_precision), Z_DVAL_P(struc)); in php_debug_zval_dump()
493 php_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_export_ex()
501 if (zend_finite(Z_DVAL_P(struc)) && NULL == strchr(tmp_str, '.')) { in php_var_export_ex()
980 php_gcvt(Z_DVAL_P(struc), (int)PG(serialize_precision), '.', 'E', tmp_str); in php_var_serialize_intern()
/PHP-8.0/ext/json/
H A Djson_encoder.c552 if (php_json_is_valid_double(Z_DVAL_P(val))) { in php_json_encode_zval()
553 php_json_encode_double(buf, Z_DVAL_P(val), options); in php_json_encode_zval()
/PHP-8.0/ext/intl/common/
H A Dcommon_date.cpp197 rv = U_MILLIS_PER_SECOND * Z_DVAL_P(z); in intl_zval_to_millis()
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_utils.c678 …phpdbg_xml("<float refstatus=\"%s\" value=\"%.*G\" />", COMMON, (int) EG(precision), Z_DVAL_P(zv)); in phpdbg_xml_var_dump()
803 spprintf(&decode, 0, "%.*G", 14, Z_DVAL_P(zv)); in phpdbg_short_zval_print()
806 if (zend_finite(Z_DVAL_P(zv)) && !strchr(decode, '.')) { in phpdbg_short_zval_print()
H A Dphpdbg_info.c269 VARIABLEINFO("value=\"%lf\"", "\ndouble (%lf)", Z_DVAL_P(data)); in phpdbg_print_symbols()
/PHP-8.0/ext/sysvmsg/
H A Dsysvmsg.c413 message_len = spprintf(&p, 0, "%F", Z_DVAL_P(message)); in PHP_FUNCTION()
/PHP-8.0/ext/opcache/Optimizer/
H A Dsccp.c187 …value) == IS_DOUBLE && Z_TYPE_P(new) == IS_DOUBLE && isnan(Z_DVAL_P(value)) && isnan(Z_DVAL_P(new)… in set_value()
431 *result = zend_hash_index_find(Z_ARR_P(op1), zend_dval_to_lval(Z_DVAL_P(op2))); in fetch_array_elem()
514 zend_hash_index_del(Z_ARR_P(result), zend_dval_to_lval(Z_DVAL_P(key))); in ct_eval_del_array_elem()
556 Z_ARR_P(result), zend_dval_to_lval(Z_DVAL_P(key)), value); in ct_eval_add_array_elem()
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit_helpers.c504 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_r_helper()
605 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_is_helper()
689 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_isset_helper()
775 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_rw_helper()
874 hval = zend_dval_to_lval(Z_DVAL_P(dim)); in zend_jit_fetch_dim_w_helper()
/PHP-8.0/ext/pgsql/
H A Dpgsql.c4728 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert()
4783 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert()
4844 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert()
4882 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert()
5147 ZVAL_DOUBLE(&new_val, Z_DVAL_P(val)); in php_pgsql_convert()
5399 smart_str_appendl(&querystr, buf, snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val))); in php_pgsql_insert()
5569 …smart_str_appendl(querystr, buf, MIN(snprintf(buf, sizeof(buf), "%F", Z_DVAL_P(val)), sizeof(buf) … in build_assignment_string()
/PHP-8.0/ext/pdo_mysql/
H A Dmysql_statement.c527 b->buffer = &Z_DVAL_P(parameter); in pdo_mysql_stmt_param_hook()
/PHP-8.0/ext/pdo_firebird/
H A Dfirebird_statement.c693 var->sqldata = (void*)&Z_DVAL_P(parameter); in firebird_stmt_param_hook()
/PHP-8.0/ext/com_dotnet/
H A Dcom_variant.c159 V_R8(v) = Z_DVAL_P(z); in php_com_variant_from_zval()
/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c810 float8store(*p, Z_DVAL_P(data)); in mysqlnd_stmt_execute_store_param_values()

Completed in 300 milliseconds

12