/php-src/Zend/ |
H A D | zend_multiply.h | 30 (dval) = (double) (a) * (double) (b); \ 40 (dval) = (double) (a) * (double) (b); \ 53 if (usedval) (dval) = (double) (a) * (double) (b); \ 65 if (usedval) (dval) = (double) (a) * (double) (b); \ 78 if (usedval) (dval) = (double) (a) * (double) (b); \ 94 (dval) = (double)(a) * (double)(b); \ 107 (dval) = (double)(a) * (double)(b); \ 116 (dval) = __dres; \ 132 (dval) = (double) (a) * (double) (b); \ 145 (dval) = (double) __result; \ [all …]
|
H A D | zend_strtod.c | 1473 return dval(&da) / dval(&db); 2888 dval(&rv0) *= dval(&rv0); 2960 dval(&rv0) = dval(&rv); 3421 dval(&rv0) = dval(&rv); 3467 dval(&rv0) = dval(&rv); 3572 dval(&rv) *= dval(&rv0); 3588 dval(&rv0) *= dval(&rv0); 3833 dval(&d2) = dval(&u); in zend_dtoa() 3966 dval(&d2) = dval(&u); in zend_dtoa() 4070 dval(&u) = dval(&d2); in zend_dtoa() [all …]
|
H A D | zend_constants.h | 53 #define REGISTER_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(n… argument 60 …BLE_CONSTANT(ns, name, dval, flags) zend_register_double_constant(ZEND_NS_NAME(ns, name), sizeof(… argument 67 …ine REGISTER_MAIN_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof… argument 85 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int fla…
|
H A D | zend_operators.c | 388 double dval = Z_DVAL_P(op); in zendi_try_get_long() local 402 double dval; in zendi_try_get_long() local 916 double dval = Z_DVAL_P(op); in zval_get_long_func() local 929 double dval; in zval_get_long_func() local 1320 double dval = 0.0; in pow_function_base() local 2644 double dval; in increment_function() local 2717 double dval; in decrement_function() local 3601 if (dval) { 3632 if (dval) { 3652 if (dval) { [all …]
|
H A D | zend_ini_parser.y | 296 double dval; in convert_to_number() local 298 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow, NULL)) != 0) { in convert_to_number() 303 ZVAL_DOUBLE(retval, dval); in convert_to_number()
|
H A D | zend_operators.h | 106 double *dval, bool allow_errors, int *oflow_info, bool *trailing_data); 162 double *dval, bool allow_errors, int *oflow_info, bool *trailing_data) in is_numeric_string_ex() argument 167 return _is_numeric_string_ex(str, length, lval, dval, allow_errors, oflow_info, trailing_data); in is_numeric_string_ex() 170 …s_numeric_string(const char *str, size_t length, zend_long *lval, double *dval, bool allow_errors)… in is_numeric_string() argument 171 return is_numeric_string_ex(str, length, lval, dval, allow_errors, NULL, NULL); in is_numeric_string() 174 …nt8_t ZEND_FASTCALL is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval);
|
H A D | zend_constants.c | 159 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int fla… in zend_register_double_constant() argument 163 ZVAL_DOUBLE(&c.value, dval); in zend_register_double_constant()
|
H A D | zend_API.h | 1090 ZEND_API zend_result zend_try_assign_typed_ref_double(zend_reference *ref, double dval); 1210 #define _ZEND_TRY_ASSIGN_DOUBLE(zv, dval, is_ref) do { \ argument 1215 zend_try_assign_typed_ref_double(ref, dval); \ 1221 ZVAL_DOUBLE(_zv, dval); \ 1224 #define ZEND_TRY_ASSIGN_DOUBLE(zv, dval) \ argument 1225 _ZEND_TRY_ASSIGN_DOUBLE(zv, dval, 0) 1227 #define ZEND_TRY_ASSIGN_REF_DOUBLE(zv, dval) do { \ argument 1229 _ZEND_TRY_ASSIGN_DOUBLE(zv, dval, 1); \
|
H A D | zend_types.h | 317 double dval; /* double value */ member 968 #define Z_DVAL(zval) (zval).value.dval
|
H A D | zend_execute.c | 727 double dval; in zend_verify_weak_scalar_type_hint() local 736 uint8_t type = is_numeric_str_function(Z_STR_P(arg), &lval, &dval); in zend_verify_weak_scalar_type_hint() 744 ZVAL_DOUBLE(arg, dval); in zend_verify_weak_scalar_type_hint() 755 if ((type_mask & MAY_BE_DOUBLE) && zend_parse_arg_double_weak(arg, &dval, 0)) { in zend_verify_weak_scalar_type_hint() 757 ZVAL_DOUBLE(arg, dval); in zend_verify_weak_scalar_type_hint() 788 double dval; in zend_verify_weak_scalar_type_hint_no_sideeffect() local 796 if ((type_mask & MAY_BE_DOUBLE) && zend_parse_arg_double_weak(arg, &dval, (uint32_t)-1)) { in zend_verify_weak_scalar_type_hint_no_sideeffect()
|
/php-src/ext/intl/collator/ |
H A D | collator_is_numeric.c | 207 uint8_t collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, bool allow_… in collator_is_numeric() argument 242 if (dval) { in collator_is_numeric() 243 *dval = local_dval; in collator_is_numeric() 254 if (end_ptr_double > end_ptr_long && dval) { in collator_is_numeric() 255 *dval = local_dval; in collator_is_numeric()
|
H A D | collator_is_numeric.h | 23 uint8_t collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, bool allow_…
|
H A D | collator_convert.c | 313 double dval = 0; in collator_convert_string_to_number_if_possible() local 320 …_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lval, &dval, /* allow_errors */… in collator_convert_string_to_number_if_possible() 326 ZVAL_DOUBLE(rv, dval); in collator_convert_string_to_number_if_possible()
|
/php-src/ext/sockets/ |
H A D | sockaddr_conv.c | 65 double dval = 0; in php_set_inet6_addr() local 70 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) { in php_set_inet6_addr()
|
H A D | conversions.c | 334 double dval; in from_zval_integer_common() local 341 switch (is_numeric_string(Z_STRVAL(lzval), Z_STRLEN(lzval), &lval, &dval, 0)) { in from_zval_integer_common() 344 ZVAL_DOUBLE(&lzval, dval); in from_zval_integer_common()
|
/php-src/ext/filter/ |
H A D | logical_filters.c | 358 double dval; in php_filter_float() local 445 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) { in php_filter_float() 454 if ((!dval && p - num > 1 && strpbrk(num, "123456789")) || !zend_finite(dval)) { in php_filter_float() 457 if ((min_range_set && (dval < min_range)) || (max_range_set && (dval > max_range))) { in php_filter_float() 461 ZVAL_DOUBLE(value, dval); in php_filter_float()
|
/php-src/ext/standard/ |
H A D | math.c | 561 double dval; in PHP_FUNCTION() local 564 Z_PARAM_DOUBLE(dval) in PHP_FUNCTION() 566 RETURN_BOOL(zend_finite(dval)); in PHP_FUNCTION() 573 double dval; in PHP_FUNCTION() local 576 Z_PARAM_DOUBLE(dval) in PHP_FUNCTION() 578 RETURN_BOOL(zend_isinf(dval)); in PHP_FUNCTION() 585 double dval; in PHP_FUNCTION() local 588 Z_PARAM_DOUBLE(dval) in PHP_FUNCTION() 590 RETURN_BOOL(zend_isnan(dval)); in PHP_FUNCTION()
|
H A D | array.c | 2891 …t(const zval *input, uint32_t arg_num, zend_long /* restrict */ *lval, double /* restrict */ *dval) argument 2896 *dval = (double) Z_LVAL_P(input); 2899 *dval = Z_DVAL_P(input); 2901 if (zend_isinf(*dval)) { 2905 if (zend_isnan(*dval)) { 2926 *dval = 0.0; 2929 uint8_t type = is_numeric_str_function(Z_STR_P(input), lval, dval); 2934 *dval = (double) *lval; 2950 *dval = 0.0;
|
/php-src/ext/intl/timezone/ |
H A D | timezone_methods.cpp | 159 double dval; in PHP_FUNCTION() local 163 switch (is_numeric_string(Z_STRVAL_P(arg), Z_STRLEN_P(arg), &lval, &dval, 0)) { in PHP_FUNCTION() 166 ZVAL_DOUBLE(arg, dval); in PHP_FUNCTION()
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_statement.c | 755 double dval; in pdo_firebird_stmt_param_hook() local 762 switch (is_numeric_string(Z_STRVAL_P(parameter), Z_STRLEN_P(parameter), &lval, &dval, 0)) { in pdo_firebird_stmt_param_hook() 767 *(FB_BOOLEAN*)var->sqldata = (dval != 0) ? FB_TRUE : FB_FALSE; in pdo_firebird_stmt_param_hook()
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_ps_codec.c | 210 double dval; in ps_fetch_float() local 225 dval = mysql_float_to_double(fval, (field->decimals >= NOT_FIXED_DEC) ? -1 : (int)field->decimals); in ps_fetch_float() 227 ZVAL_DOUBLE(zv, dval); in ps_fetch_float()
|
/php-src/docs/source/core/data-structures/ |
H A D | zval.rst | 46 double dval; /* double value, i.e. float. */ 66 as its biggest member. For example, ``zend_value`` may store the ``lval`` member, or the ``dval``
|
/php-src/ |
H A D | .gdbinit | 109 printf "%f", $zvalue->value.dval 186 printf "double: %f", $zvalue->value.dval
|
/php-src/ext/ffi/ |
H A D | ffi.c | 740 double dval; in zend_ffi_zval_to_cdata() local 758 dval = zval_get_double(value); in zend_ffi_zval_to_cdata() 759 *(float*)ptr = dval; in zend_ffi_zval_to_cdata() 762 dval = zval_get_double(value); in zend_ffi_zval_to_cdata() 763 *(double*)ptr = dval; in zend_ffi_zval_to_cdata() 767 dval = zval_get_double(value); in zend_ffi_zval_to_cdata() 768 *(long double*)ptr = dval; in zend_ffi_zval_to_cdata() 2550 double dval; in zend_ffi_pass_arg() local 2559 dval = zval_get_double(arg); in zend_ffi_pass_arg() 2564 dval = zval_get_double(arg); in zend_ffi_pass_arg() [all …]
|
/php-src/ext/soap/ |
H A D | php_encoding.c | 1026 double dval; in to_zval_double() local 1029 …_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) { in to_zval_double() 1034 ZVAL_DOUBLE(ret, dval); in to_zval_double() 1064 double dval; in to_zval_long() local 1069 …_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) { in to_zval_long() 1074 ZVAL_DOUBLE(ret, dval); in to_zval_long()
|