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

/PHP_TRUNK/ext/intl/collator/
H A Dcollator_is_numeric.c225 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allow_errors ) argument
271 if (dval) {
272 *dval = local_dval;
286 if (end_ptr_double > end_ptr_long && dval) {
287 *dval = local_dval;
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allow_errors );
H A Dcollator_convert.c356 double dval = 0; local
363 if( ( is_numeric = collator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lval, &dval, 1 ) ) )
369 ZVAL_DOUBLE(rv, dval);
/PHP_TRUNK/Zend/
H A Dzend_constants.h43 #define REGISTER_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name)-1, (dval), (flags), module_number)
50 #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)
57 #define REGISTER_MAIN_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name)-1, (dval), (flags), 0)
74 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int flags, int module_number);
H A Dzend_constants.c199 ZEND_API void zend_register_double_constant(const char *name, size_t name_len, double dval, int flags, int module_number) argument
203 ZVAL_DOUBLE(&c.value, dval);
H A Dzend_multiply.h27 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
33 if (usedval) (dval) = (double) (a) * (double) (b); \
39 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
45 if (usedval) (dval) = (double) (a) * (double) (b); \
51 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
58 if (usedval) (dval) = (double) (a) * (double) (b); \
64 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
69 (dval) = __dres; \
77 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
84 (dval)
[all...]
H A Dzend_strtod.c320 #define dval(x) (x)->d macro
1243 return dval(&u);
1313 return dval(&d);
1461 dval(&da) = b2d(a, &ka);
1462 dval(&db) = b2d(b, &kb);
1472 dval(&da) *= 1 << k;
1478 dval(&db) *= 1 << k;
1488 return dval(&da) / dval(&db);
2480 dval(r
[all...]
H A Dzend_operators.h83 * The number's value is returned into the respective pointer, *lval or *dval,
90 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);
129 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) argument
134 return _is_numeric_string_ex(str, length, lval, dval, allow_errors, oflow_info);
137 static zend_always_inline zend_uchar is_numeric_string(const char *str, size_t length, zend_long *lval, double *dval, int allow_errors) { argument
138 return is_numeric_string_ex(str, length, lval, dval, allow_errors, NULL);
141 ZEND_API zend_uchar ZEND_FASTCALL is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval);
H A Dzend_types.h102 double dval; /* double value */ member in union:_zend_value
508 #define Z_DVAL(zval) (zval).value.dval
H A Dzend_operators.c530 double dval = Z_DVAL_P(op); local
532 str = zend_strpprintf(0, "%.*G", (int) EG(precision), dval);
1041 double dval = 0.0; local
1045 ZEND_SIGNED_MULTIPLY_LONG(l1, l2, l1, dval, overflow);
1047 ZVAL_DOUBLE(result, dval * pow(l2, i));
1052 ZEND_SIGNED_MULTIPLY_LONG(l2, l2, l2, dval, overflow);
1054 ZVAL_DOUBLE(result, (double)l1 * pow(dval, i));
2231 double dval; local
2233 switch (is_numeric_string(Z_STRVAL_P(op1), Z_STRLEN_P(op1), &lval, &dval, 0)) {
2246 ZVAL_DOUBLE(op1, dval
2291 double dval; local
2731 is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval) argument
2736 _is_numeric_string_ex(const char *str, size_t length, zend_long *lval, double *dval, int allow_errors, int *oflow_info) argument
[all...]
H A Dzend_ini_scanner.c159 double dval; local
161 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow)) != 0) {
166 ZVAL_DOUBLE(retval, dval);
H A Dzend_ini_scanner.l157 double dval;
159 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow)) != 0) {
164 ZVAL_DOUBLE(retval, dval);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c179 double dval; local
189 dval = mysql_float_to_double(fval, (field->decimals >= NOT_FIXED_DEC) ? -1 : field->decimals);
191 ZVAL_DOUBLE(zv, dval);
/PHP_TRUNK/ext/filter/
H A Dlogical_filters.c336 double dval; local
405 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) {
411 if ((!dval && p - num > 1 && strpbrk(num, "123456789")) || !zend_finite(dval)) {
415 ZVAL_DOUBLE(value, dval);
/PHP_TRUNK/ext/sockets/
H A Dsockaddr_conv.c65 double dval = 0; local
68 if (IS_LONG == is_numeric_string(scope, strlen(scope), &lval, &dval, 0)) {
H A Dconversions.c333 double dval; local
337 switch (is_numeric_string(Z_STRVAL(lzval), Z_STRLEN(lzval), &lval, &dval, 0)) {
340 ZVAL_DOUBLE(&lzval, dval);
/PHP_TRUNK/ext/intl/timezone/
H A Dtimezone_methods.cpp177 double dval; local
179 switch (is_numeric_string(Z_STRVAL_P(arg), Z_STRLEN_P(arg), &lval, &dval, 0)) {
183 ZVAL_DOUBLE(arg, dval);
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_api.c1015 double dval; local
1020 dval = mysql_float_to_double(*(float *)stmt->result.buf[i].val,
1024 dval = *((double *)stmt->result.buf[i].val);
1027 ZVAL_DOUBLE(result, dval);
/PHP_TRUNK/ext/soap/
H A Dphp_encoding.c987 double dval; local
990 switch (is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) {
995 ZVAL_DOUBLE(ret, dval);
1025 double dval; local
1030 switch (is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) {
1035 ZVAL_DOUBLE(ret, dval);
/PHP_TRUNK/ext/standard/
H A Dmath.c678 double dval; local
681 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &dval) == FAILURE) {
686 Z_PARAM_DOUBLE(dval)
689 RETURN_BOOL(zend_finite(dval));
697 double dval; local
700 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &dval) == FAILURE) {
705 Z_PARAM_DOUBLE(dval)
708 RETURN_BOOL(zend_isinf(dval));
716 double dval; local
719 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &dval)
[all...]
H A Darray.c4627 double dval; local
4646 dval = (double)Z_LVAL_P(return_value) * (double)Z_LVAL(entry_n);
4647 if ( (double)ZEND_LONG_MIN <= dval && dval <= (double)ZEND_LONG_MAX ) {

Completed in 86 milliseconds