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

/PHP_TRUNK/Zend/
H A Dzend_constants.c198 ZEND_API void zend_register_double_constant(const char *name, uint name_len, double dval, int flags, int module_number TSRMLS_DC) argument
202 ZVAL_DOUBLE(&c.value, dval);
H A Dzend_constants.h43 #define REGISTER_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name)-1, (dval), (flags), module_number TSRMLS_CC)
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)), (dval), (flags), module_number TSRMLS_CC)
57 #define REGISTER_MAIN_DOUBLE_CONSTANT(name, dval, flags) zend_register_double_constant((name), sizeof(name)-1, (dval), (flags), 0 TSRMLS_CC)
74 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_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 { \
42 if (usedval) (dval) = (double) (a) * (double) (b); \
48 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
54 if (usedval) (dval) = (double) (a) * (double) (b); \
60 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
67 if (usedval) (dval) = (double) (a) * (double) (b); \
73 #define ZEND_SIGNED_MULTIPLY_LONG(a, b, lval, dval, usedval) do { \
78 (dval)
[all...]
H A Dzend_operators.c612 double dval = Z_DVAL_P(op); local
615 str = zend_strpprintf(0, "%.*G", (int) EG(precision), dval);
1106 double dval = 0.0; local
1110 ZEND_SIGNED_MULTIPLY_LONG(l1, l2, l1, dval, overflow);
1112 ZVAL_DOUBLE(result, dval * pow(l2, i));
1117 ZEND_SIGNED_MULTIPLY_LONG(l2, l2, l2, dval, overflow);
1119 ZVAL_DOUBLE(result, (double)l1 * pow(dval, i));
2154 double dval; local
2156 switch (is_numeric_string(Z_STRVAL_P(op1), Z_STRLEN_P(op1), &lval, &dval, 0)) {
2169 ZVAL_DOUBLE(op1, dval
2204 double dval; local
2570 is_numeric_str_function(const zend_string *str, zend_long *lval, double *dval) argument
[all...]
H A Dzend_operators.h125 * The number's value is returned into the respective pointer, *lval or *dval,
132 static 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
173 * it's a double. Otherwise, if there's a dval or no need to check for
175 for (type = IS_LONG; !(digits >= MAX_LENGTH_OF_LONG && (dval || allow_errors == 1)); digits++, ptr++) {
206 if (dval) {
218 /* If there's a dval, do the conversion; else continue checking
220 if (dval) {
244 if (dval) {
245 *dval = zend_strtod(str, NULL);
261 if (dval) {
269 is_numeric_string(const char *str, size_t length, zend_long *lval, double *dval, int allow_errors) argument
[all...]
H A Dzend_types.h105 double dval; /* double value */ member in union:_zend_value
402 #define Z_DVAL(zval) (zval).value.dval
/PHP_TRUNK/ext/filter/
H A Dlogical_filters.c331 double dval; local
400 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) {
406 if ((!dval && p - num > 1 && strpbrk(num, "123456789")) || !zend_finite(dval)) {
410 ZVAL_DOUBLE(value, dval);
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_convert.c363 double dval = 0; local
370 if( ( is_numeric = collator_is_numeric( (UChar*) Z_STRVAL_P(str), UCHARS( Z_STRLEN_P(str) ), &lval, &dval, 1 ) ) )
376 ZVAL_DOUBLE(rv, dval);
H A Dcollator_is_numeric.c225 zend_uchar collator_is_numeric( UChar *str, int 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, int length, zend_long *lval, double *dval, int allow_errors );
/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.c332 double dval; local
336 switch (is_numeric_string(Z_STRVAL(lzval), Z_STRLEN(lzval), &lval, &dval, 0)) {
339 ZVAL_DOUBLE(&lzval, dval);
/PHP_TRUNK/ext/gd/
H A Dgd.c4876 zval dval; local
4877 ZVAL_COPY(&dval, var2);
4878 convert_to_double(&dval);
4879 matrix[i][j] = (float)Z_DVAL(dval);
5158 zval dval; local
5159 ZVAL_COPY(&dval, zval_affine_elem);
5160 convert_to_double(&dval);
5161 affine[i] = Z_DVAL(dval);
5272 zval dval; local
5273 ZVAL_COPY(&dval, tm
5286 zval dval; local
5376 zval dval; local
5397 zval dval; local
[all...]
/PHP_TRUNK/ext/intl/timezone/
H A Dtimezone_methods.cpp178 double dval; local
180 switch (is_numeric_string(Z_STRVAL_P(arg), Z_STRLEN_P(arg), &lval, &dval, 0)) {
184 ZVAL_DOUBLE(arg, dval);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_ps_codec.c178 double dval; local
201 dval = (double) d32val;
219 dval = zend_strtod(s, NULL);
223 ZVAL_DOUBLE(zv, dval);
/PHP_TRUNK/ext/soap/
H A Dphp_encoding.c990 double dval; local
993 switch (is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) {
998 ZVAL_DOUBLE(ret, dval);
1028 double dval; local
1033 switch (is_numeric_string((char*)data->children->content, strlen((char*)data->children->content), &lval, &dval, 0)) {
1038 ZVAL_DOUBLE(ret, dval);
/PHP_TRUNK/ext/standard/
H A Darray.c4230 double dval; local
4249 dval = (double)Z_LVAL_P(return_value) * (double)Z_LVAL(entry_n);
4250 if ( (double)ZEND_LONG_MIN <= dval && dval <= (double)ZEND_LONG_MAX ) {
H A Dmath.c639 double dval; local
642 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &dval) == FAILURE) {
647 Z_PARAM_DOUBLE(dval)
650 RETURN_BOOL(zend_finite(dval));
658 double dval; local
661 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &dval) == FAILURE) {
666 Z_PARAM_DOUBLE(dval)
669 RETURN_BOOL(zend_isinf(dval));
677 double dval; local
680 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &dval)
[all...]

Completed in 43 milliseconds