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

/PHP_5_3/ext/intl/collator/
H A Dcollator_convert.c378 double dval = 0; local
385 if( ( is_numeric = collator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lval, &dval, 1 ) ) )
392 Z_DVAL_P(num) = dval;
H A Dcollator_is_numeric.c225 zend_uchar collator_is_numeric( UChar *str, int length, 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, int length, long *lval, double *dval, int allow_errors );
/PHP_5_3/ext/filter/
H A Dlogical_filters.c311 double dval; local
380 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) {
387 if ((!dval && p - num > 1 && strpbrk(num, "123456789")) || !zend_finite(dval)) {
392 Z_DVAL_P(value) = dval;
/PHP_5_3/ext/soap/
H A Dphp_encoding.c1043 double dval; local
1046 switch (is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) {
1053 Z_DVAL_P(ret) = dval;
1084 double dval; local
1089 switch ((Z_TYPE_P(ret) = is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0))) {
1094 Z_DVAL_P(ret) = dval;
/PHP_5_3/ext/standard/
H A Darray.c4011 double dval; local
4031 dval = (double)Z_LVAL_P(return_value) + (double)Z_LVAL(entry_n);
4032 if ( (double)LONG_MIN <= dval && dval <= (double)LONG_MAX ) {
4052 double dval; local
4075 dval = (double)Z_LVAL_P(return_value) * (double)Z_LVAL(entry_n);
4076 if ( (double)LONG_MIN <= dval && dval <= (double)LONG_MAX ) {
H A Dmath.c562 double dval; local
564 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &dval) == FAILURE) {
567 RETURN_BOOL(zend_finite(dval));
575 double dval; local
577 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &dval) == FAILURE) {
580 RETURN_BOOL(zend_isinf(dval));
588 double dval; local
590 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &dval) == FAILURE) {
593 RETURN_BOOL(zend_isnan(dval));
624 double dval local
[all...]
/PHP_5_3/Zend/
H A Dzend.h307 double dval; /* double value */ member in union:_zvalue_value
H A Dzend_constants.c191 ZEND_API void zend_register_double_constant(const char *name, uint name_len, double dval, int flags, int module_number TSRMLS_DC) argument
196 c.value.value.dval = dval;
H A Dzend_constants.h42 #define REGISTER_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name), (dval), (flags), module_number TSRMLS_CC)
47 #define REGISTER_NS_DOUBLE_CONSTANT(ns, name, dval, flags) zend_register_double_constant(ZEND_NS_NAME(ns, name), sizeof(ZEND_NS_NAME(ns, name)), (dval), (flags), module_number TSRMLS_CC)
52 #define REGISTER_MAIN_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name), (dval), (flags), 0 TSRMLS_CC)
66 ZEND_API void zend_register_double_constant(const char *name, uint name_len, double dval, int flags, int module_number TSRMLS_DC);
H A Dzend_language_scanner.l1340 zendlval->value.dval = zend_oct_strtod(yytext, NULL);
1342 zendlval->value.dval = zend_strtod(yytext, NULL);
1372 zendlval->value.dval = zend_hex_strtod(hex, NULL);
1398 zendlval->value.dval = zend_strtod(yytext, NULL);
H A Dzend_multiply.h24 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
30 if (usedval) (dval) = (double) (a) * (double) (b); \
36 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
39 (dval) = (double) __result; \
49 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
54 (dval) = __dres; \
H A Dzend_operators.c544 double dval; local
577 dval = Z_DVAL_P(op);
578 Z_STRLEN_P(op) = zend_spprintf(&Z_STRVAL_P(op), 0, "%.*G", (int) EG(precision), dval);
1778 double dval; local
1780 switch (is_numeric_string(Z_STRVAL_P(op1), Z_STRLEN_P(op1), &lval, &dval, 0)) {
1793 ZVAL_DOUBLE(op1, dval+1);
1812 double dval; local
1832 switch (is_numeric_string(Z_STRVAL_P(op1), Z_STRLEN_P(op1), &lval, &dval, 0)) {
1844 ZVAL_DOUBLE(op1, dval - 1);
H A Dzend_operators.h98 * The number's value is returned into the respective pointer, *lval or *dval,
102 static inline zend_uchar is_numeric_string(const char *str, int length, long *lval, double *dval, int allow_errors) argument
139 * it's a double. Otherwise, if there's a dval or no need to check for
141 for (type = IS_LONG; !(digits >= MAX_LENGTH_OF_LONG && (dval || allow_errors == 1)); digits++, ptr++) {
169 if (dval) {
178 /* If there's a dval, do the conversion; else continue checking
180 if (dval) {
204 if (dval) {
205 *dval = zend_strtod(str, NULL);
218 if (dval) {
[all...]
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_debug.c1555 double dval = Z_DVAL_PP(arg); local
1560 l_tmp = zend_sprintf(s_tmp, "%.*G", (int) EG(precision), dval); /* SAFE */
1738 double dval = Z_DVAL_PP(arg); local
1743 l_tmp = zend_sprintf(s_tmp, "%.*G", (int) EG(precision), dval); /* SAFE */

Completed in 34 milliseconds