Home
last modified time | relevance | path

Searched refs:dval (Results 1 - 23 of 23) sorted by relevance

/php-7.4/Zend/
H A Dzend_strtod.c(last modified 24/01/2020 08:00)320 #define dval(x) (x)->d macro
1246 return dval(&u);
1316 return dval(&d);
1464 dval(&da) = b2d(a, &ka);
1465 dval(&db) = b2d(b, &kb);
1475 dval(&da) *= 1 << k;
1481 dval(&db) *= 1 << k;
1491 return dval(&da) / dval(&db);
2483 dval(r
[all...]
H A Dzend_multiply.h(last modified 13/02/2019 23:05)27 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
30 (dval) = (double) (a) * (double) (b); \
37 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
40 (dval) = (double) (a) * (double) (b); \
47 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
53 if (usedval) (dval) = (double) (a) * (double) (b); \
59 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
65 if (usedval) (dval) = (double) (a) * (double) (b); \
71 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
78 if (usedval) (dval)
[all...]
H A Dzend_constants.h(last modified 13/02/2019 23:06)54 #define REGISTER_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name)-1, (dval), (flags), module_number)
61 #define REGISTER_NS_DOUBLE_CONSTANT(ns, name, dval, flags) zend_register_double_constant(ZEND_NS_NAME(ns, name), sizeof(ZEND_NS_NAME(ns, name))-1, (dval), (flags), module_number)
68 #define REGISTER_MAIN_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name)-1, (dval), (flags), 0)
85 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int flags, int module_number);
H A Dzend_operators.c(last modified 13/10/2020 08:00)524 double dval = Z_DVAL_P(op); in _convert_to_cstring() local
526 str = zend_strpprintf_unchecked(0, "%.*H", (int) EG(precision), dval); in _convert_to_cstring()
561 double dval = Z_DVAL_P(op); in _convert_to_string() local
563 str = zend_strpprintf(0, "%.*G", (int) EG(precision), dval); in _convert_to_string()
780 double dval; in _zval_get_long_func_ex() local
781 if (0 == (type = is_numeric_string(Z_STRVAL_P(op), Z_STRLEN_P(op), &lval, &dval, silent ? 1 : -1))) { in _zval_get_long_func_ex()
794 return zend_dval_to_lval_cap(dval); in _zval_get_long_func_ex()
1180 double dval = 0.0; in pow_function() local
1184 ZEND_SIGNED_MULTIPLY_LONG(l1, l2, l1, dval, overflow); in pow_function()
1186 ZVAL_DOUBLE(result, dval * po in pow_function()
2470 double dval; increment_function() local
2529 double dval; decrement_function() local
3020 is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval) global() argument
3025 _is_numeric_string_ex(const char *str, size_t length, zend_long *lval, double *dval, int allow_errors, int *oflow_info) global() argument
[all...]
H A Dzend_operators.h(last modified 24/02/2020 08:00)77 * The number's value is returned into the respective pointer, *lval or *dval,
84 ZEND_API zend_uchar ZEND_FASTCALL _is_numeric_string_ex(const char *str, size_t length, zend_long *lval, double *dval, int allow_errors, int *oflow_info);
133 static zend_always_inline zend_uchar is_numeric_string_ex(const char *str, size_t length, zend_long *lval, double *dval, int allow_errors, int *oflow_info) in is_numeric_string_ex() argument
138 return _is_numeric_string_ex(str, length, lval, dval, allow_errors, oflow_info); in is_numeric_string_ex()
141 static zend_always_inline zend_uchar is_numeric_string(const char *str, size_t length, zend_long *lval, double *dval, int allow_errors) { in is_numeric_string() argument
142 return is_numeric_string_ex(str, length, lval, dval, allow_errors, NULL); in is_numeric_string()
145 ZEND_API zend_uchar ZEND_FASTCALL is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval);
H A Dzend_API.h(last modified 12/07/2019 08:00)686 ZEND_API int zend_try_assign_typed_ref_double(zend_reference *ref, double dval);
806 #define _ZEND_TRY_ASSIGN_DOUBLE(zv, dval, is_ref) do { \
811 zend_try_assign_typed_ref_double(ref, dval); \
817 ZVAL_DOUBLE(_zv, dval); \
820 #define ZEND_TRY_ASSIGN_DOUBLE(zv, dval) \
821 _ZEND_TRY_ASSIGN_DOUBLE(zv, dval, 0)
823 #define ZEND_TRY_ASSIGN_REF_DOUBLE(zv, dval) do { \
825 _ZEND_TRY_ASSIGN_DOUBLE(zv, dval, 1); \
H A Dzend_constants.c(last modified 13/02/2019 23:06)180 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int flags, int module_number) in zend_register_double_constant() argument
184 ZVAL_DOUBLE(&c.value, dval); in zend_register_double_constant()
H A Dzend_types.h(last modified 12/12/2019 08:00)178 double dval; /* double value */ member
680 #define Z_DVAL(zval) (zval).value.dval
H A Dzend_API.c(last modified 31/08/2020 08:00)3848 ZEND_API int zend_try_assign_typed_ref_double(zend_reference *ref, double dval) /* {{{ */ in zend_try_assign_typed_ref_double() argument
3852 ZVAL_DOUBLE(&tmp, dval); in zend_try_assign_typed_ref_double()
/php-7.4/ext/intl/collator/
H A Dcollator_is_numeric.c(last modified 13/02/2019 23:05)214 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allow_errors ) in collator_is_numeric() argument
260 if (dval) { in collator_is_numeric()
261 *dval = local_dval; in collator_is_numeric()
275 if (end_ptr_double > end_ptr_long && dval) { in collator_is_numeric()
276 *dval = local_dval; in collator_is_numeric()
H A Dcollator_convert.c(last modified 13/02/2019 23:06)350 double dval = 0; in collator_convert_string_to_number_if_possible() local
357 if( ( is_numeric = collator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lval, &dval, 1 ) ) ) in collator_convert_string_to_number_if_possible()
363 ZVAL_DOUBLE(rv, dval); in collator_convert_string_to_number_if_possible()
H A Dcollator_is_numeric.h(last modified 13/02/2019 23:05)24 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allow_errors );
/php-7.4/ext/filter/
H A Dlogical_filters.c(last modified 09/04/2019 08:00)349 double dval; in php_filter_float() local
436 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) { in php_filter_float()
445 if ((!dval && p - num > 1 && strpbrk(num, "123456789")) || !zend_finite(dval)) { in php_filter_float()
448 if ((min_range_set && (dval < min_range)) || (max_range_set && (dval > max_range))) { in php_filter_float()
452 ZVAL_DOUBLE(value, dval); in php_filter_float()
/php-7.4/ext/standard/
H A Dmath.c(last modified 09/07/2019 08:00)586 double dval; in PHP_FUNCTION() local
589 Z_PARAM_DOUBLE(dval) in PHP_FUNCTION()
591 RETURN_BOOL(zend_finite(dval)); in PHP_FUNCTION()
599 double dval; in PHP_FUNCTION() local
602 Z_PARAM_DOUBLE(dval) in PHP_FUNCTION()
604 RETURN_BOOL(zend_isinf(dval)); in PHP_FUNCTION()
612 double dval; in PHP_FUNCTION() local
615 Z_PARAM_DOUBLE(dval) in PHP_FUNCTION()
617 RETURN_BOOL(zend_isnan(dval)); in PHP_FUNCTION()
H A Darray.c(last modified 06/08/2020 08:00)5980 double dval; local
5999 dval = (double)Z_LVAL_P(return_value) * (double)Z_LVAL(entry_n);
6000 if ( (double)ZEND_LONG_MIN <= dval && dval <= (double)ZEND_LONG_MAX ) {
/php-7.4/ext/sockets/
H A Dsockaddr_conv.c(last modified 13/02/2019 23:05)65 double dval = 0; in php_set_inet6_addr() local
68 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) { in php_set_inet6_addr()
H A Dconversions.c(last modified 04/08/2020 08:00)333 double dval; in from_zval_integer_common() local
340 switch (is_numeric_string(Z_STRVAL(lzval), Z_STRLEN(lzval), &lval, &dval, 0)) { in from_zval_integer_common()
343 ZVAL_DOUBLE(&lzval, dval); in from_zval_integer_common()
/php-7.4/ext/intl/timezone/
H A Dtimezone_methods.cpp(last modified 06/06/2019 08:00)179 double dval; in PHP_FUNCTION() local
183 switch (is_numeric_string(Z_STRVAL_P(arg), Z_STRLEN_P(arg), &lval, &dval, 0)) { in PHP_FUNCTION()
186 ZVAL_DOUBLE(arg, dval); in PHP_FUNCTION()
/php-7.4/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c(last modified 13/06/2019 08:00)179 double dval; in ps_fetch_float() local
189 dval = mysql_float_to_double(fval, (field->decimals >= NOT_FIXED_DEC) ? -1 : (int)field->decimals); in ps_fetch_float()
191 ZVAL_DOUBLE(zv, dval); in ps_fetch_float()
/php-7.4/ext/pdo_firebird/
H A Dfirebird_statement.c(last modified 04/02/2020 08:00)629 double dval; in firebird_stmt_param_hook() local
636 switch (is_numeric_string(Z_STRVAL_P(parameter), Z_STRLEN_P(parameter), &lval, &dval, 0)) { in firebird_stmt_param_hook()
641 *(FB_BOOLEAN*)var->sqldata = (dval != 0) ? FB_TRUE : FB_FALSE; in firebird_stmt_param_hook()
/php-7.4/ext/ffi/
H A Dffi.c(last modified 29/10/2020 08:00)659 double dval; in zend_ffi_zval_to_cdata() local
667 dval = zval_get_double(value); in zend_ffi_zval_to_cdata()
668 *(float*)ptr = dval; in zend_ffi_zval_to_cdata()
671 dval = zval_get_double(value); in zend_ffi_zval_to_cdata()
672 *(double*)ptr = dval; in zend_ffi_zval_to_cdata()
676 dval = zval_get_double(value); in zend_ffi_zval_to_cdata()
677 *(long double*)ptr = dval; in zend_ffi_zval_to_cdata()
2444 double dval; in zend_ffi_pass_arg() local
2453 dval = zval_get_double(arg); in zend_ffi_pass_arg()
2455 *(float*)arg_values[n] = (float)dval; in zend_ffi_pass_arg()
[all...]
/php-7.4/ext/soap/
H A Dphp_encoding.c(last modified 15/07/2019 08:00)988 double dval; in to_zval_double() local
991 switch (is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) { in to_zval_double()
996 ZVAL_DOUBLE(ret, dval); in to_zval_double()
1026 double dval; in to_zval_long() local
1031 switch (is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) { in to_zval_long()
1036 ZVAL_DOUBLE(ret, dval); in to_zval_long()
/php-7.4/ext/mysqli/
H A Dmysqli_api.c(last modified 12/11/2020 08:00)1014 double dval; local
1019 dval = mysql_float_to_double(*(float *)stmt->result.buf[i].val,
1023 dval = *((double *)stmt->result.buf[i].val);
1026 ZEND_TRY_ASSIGN_REF_DOUBLE(result, dval);

Completed in 188 milliseconds