Searched defs:num (Results 1 - 25 of 54) sorted by relevance

123

/PHP_TRUNK/Zend/
H A Dbench.php366 $num = number_format($end-$start,3); variable
367 $pad = str_repeat(" ", 24-strlen($name)-strlen($num));
369 echo $name.$pad.$num."\n";
379 $num = number_format($total,3); variable
380 $pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
381 echo "Total".$pad.$num."\n";
H A Dmicro_bench.php261 $num = number_format($last_time,3); variable
262 $pad = str_repeat(" ", 24-strlen($name)-strlen($num));
264 echo $name.$pad.$num."\n";
267 echo $name.$pad.$num." ".$num2."\n";
278 $num = number_format($total,3); variable
279 $pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
280 echo "Total".$pad.$num."\n";
H A Dzend_opcode.c652 uint32_t num = opline->op2.constant; local
655 opline->op2.constant = num;
/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dinit.c81 _bc_free_num_ex (num, persistent)
82 bc_num *num;
85 if (*num == NULL) return;
86 (*num)->n_refs--;
87 if ((*num)->n_refs == 0) {
88 if ((*num)->n_ptr)
90 pefree ((*num)->n_ptr, persistent);
91 pefree(*num, persistent);
93 (*num)->n_next = _bc_Free_list;
94 _bc_Free_list = *num;
117 bc_copy_num(bc_num num) argument
[all...]
H A Doutput.c90 bc_out_num (bc_num num, int o_base, void (*out_char)(int), int leading_zero TSRMLS_DC) argument
92 bc_out_num (bc_num num, int o_base, void (*out_char)(), int leading_zero TSRMLS_DC)
101 if (num->n_sign == MINUS) (*out_char) ('-');
104 if (bc_is_zero (num TSRMLS_CC))
110 nptr = num->n_value;
111 if (num->n_len > 1 || *nptr != 0)
112 for (index=num->n_len; index>0; index--)
117 if (leading_zero && bc_is_zero (num TSRMLS_CC))
121 if (num->n_scale > 0)
124 for (index=0; index<num
[all...]
H A Dsqrt.c45 bc_sqrt (bc_num *num, int scale TSRMLS_DC) argument
52 cmp_res = bc_compare (*num, BCG(_zero_));
59 bc_free_num (num);
60 *num = bc_copy_num (BCG(_zero_));
64 cmp_res = bc_compare (*num, BCG(_one_));
67 bc_free_num (num);
68 *num = bc_copy_num (BCG(_one_));
73 rscale = MAX (scale, (*num)->n_scale);
86 cscale = (*num)->n_scale;
93 bc_int2num (&guess1,(*num)
[all...]
H A Dstr2num.c44 bc_str2num (bc_num *num, char *str, int scale TSRMLS_DC) argument
50 /* Prepare num. */
51 bc_free_num (num);
65 *num = bc_copy_num (BCG(_zero_));
76 *num = bc_new_num (digits, strscale);
82 (*num)->n_sign = MINUS;
87 (*num)->n_sign = PLUS;
91 nptr = (*num)->n_value;
/PHP_TRUNK/ext/mbstring/oniguruma/enc/
H A Dmktable.c60 int num; member in struct:__anon215
1112 enc = einfo->num;
/PHP_TRUNK/ext/dba/libcdb/
H A Dcdb_make.h39 int num; member in struct:cdb_hplist
/PHP_TRUNK/ext/dba/libflatfile/
H A Dflatfile.c111 size_t num; local
120 num = atoi(buf);
121 if (num >= buf_size) {
122 buf_size = num + FLATFILE_BLOCK_SIZE;
128 num = php_stream_read(dba->fp, buf, num);
129 if (num < 0) {
133 if (size == num && !memcmp(buf, key, size)) {
146 num = atoi(buf);
147 if (num >
167 size_t num; local
214 size_t num; local
262 size_t num; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_cmd.h55 long num; member in struct:_phpdbg_param
74 (v)->num = 0; \
112 int num; member in struct:__anon8
/PHP_TRUNK/ext/filter/
H A Dlogical_filters.c323 char *num, *p; local
352 num = p = emalloc(len+1);
400 switch (is_numeric_string(num, p - num, &lval, &dval, 0)) {
406 if ((!dval && p - num > 1 && strpbrk(num, "123456789")) || !zend_finite(dval)) {
414 efree(num);
417 efree(num);
570 int num, m; local
580 num
[all...]
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_convert.c316 zval* num = collator_convert_string_to_number_if_possible( str, rv ); local
317 if( num == str )
320 zval_ptr_dtor( num );
322 num = rv;
323 ZVAL_LONG( num, 0 );
326 return num;
340 zval* num = collator_convert_string_to_number( str, rv ); local
341 if( Z_TYPE_P(num) == IS_LONG )
343 ZVAL_DOUBLE( num, Z_LVAL_P( num ) );
[all...]
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c199 int n, num, *len_list = NULL; local
217 num = 1;
221 num++;
225 num *= 2; /* need space for variable name and value */
227 val_list = (char **)ecalloc(num, sizeof(char *));
228 len_list = (int *)ecalloc(num, sizeof(int));
261 num = n; /* make sure to process initialized vars only */
274 while (n < num) {
311 while (n < num) {
/PHP_TRUNK/ext/phar/
H A Dtar.c24 php_uint32 num = 0; local
32 num = num * 8 + (buf[i] - '0');
36 return num;
/PHP_TRUNK/ext/standard/
H A Dcrypt_sha256.c373 const char *num = salt + sizeof(sha256_rounds_prefix) - 1; local
375 zend_ulong srounds = ZEND_STRTOUL(num, &endp, 10);
H A Dformatted_print.c298 register zend_ulong num; local
307 num = (zend_ulong) number;
311 numbuf[--i] = chartable[(num & andbits)];
312 num >>= n;
314 while (num > 0);
327 register zend_long num = ZEND_STRTOL(&buffer[*pos], &endptr, 10); local
336 if (num >= INT_MAX || num < 0) {
339 return (int) num;
H A Dphp_smart_str.h133 static inline char *smart_str_print_long(char *buf, zend_long num) { argument
135 _zend_print_signed_to_buf(buf, num, zend_long, r);
139 static inline char *smart_str_print_unsigned(char *buf, zend_long num) { argument
141 _zend_print_unsigned_to_buf(buf, num, zend_ulong, r);
145 #define smart_str_append_generic_ex(dest, num, type, vartype, func) do { \
148 _zend_print##func##_to_buf (__b + sizeof(__b) - 1, (num), vartype, __t); \
152 #define smart_str_append_unsigned_ex(dest, num, type) \
153 smart_str_append_generic_ex((dest), (num), (type), zend_ulong, _unsigned)
155 #define smart_str_append_long_ex(dest, num, type) \
156 smart_str_append_generic_ex((dest), (num), (typ
[all...]
H A Dphp_smart_string.h122 static inline char *smart_string_print_long(char *buf, zend_long num) { argument
124 _zend_print_signed_to_buf(buf, num, unsigned long, r);
128 static inline char *smart_string_print_unsigned(char *buf, zend_long num) { argument
130 _zend_print_unsigned_to_buf(buf, num, unsigned long, r);
134 #define smart_string_append_generic_ex(dest, num, type, vartype, func) do { \
137 _zend_print##func##_to_buf(__b + sizeof(__b) - 1, (num), vartype, __t); \
141 #define smart_string_append_unsigned_ex(dest, num, type) \
142 smart_string_append_generic_ex((dest), (num), (type), unsigned long, _unsigned)
144 #define smart_string_append_long_ex(dest, num, type) \
145 smart_string_append_generic_ex((dest), (num), (typ
[all...]
H A Dmath.c383 double num; local
386 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &num) == FAILURE) {
391 Z_PARAM_DOUBLE(num)
394 RETURN_DOUBLE(sin(num));
402 double num; local
405 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &num) == FAILURE) {
410 Z_PARAM_DOUBLE(num)
413 RETURN_DOUBLE(cos(num));
421 double num; local
424 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &num)
440 double num; local
459 double num; local
478 double num; local
517 double num; local
536 double num; local
555 double num; local
574 double num; local
593 double num; local
612 double num; local
710 double num; local
734 double num; local
758 double num; local
778 double num, base = 0; local
823 double num; local
843 double num; local
931 zend_long num = 0, digit, onum; local
976 zend_long num = 0; local
1352 double num; local
[all...]
H A Dvar.c42 uint num; local
44 num = ht->nNumOfElements;
50 num--;
54 return num;
103 zend_ulong num; local
143 ZEND_HASH_FOREACH_KEY_VAL_IND(myht, num, key, val) {
144 php_array_element_dump(val, num, key, level TSRMLS_CC);
174 zend_ulong num; local
178 ZEND_HASH_FOREACH_KEY_VAL_IND(myht, num, key, val) {
179 php_object_property_dump(val, num, ke
[all...]
H A Dtype.c140 zval *num; local
147 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &num, &base) == FAILURE) {
152 Z_PARAM_ZVAL(num)
158 RETVAL_ZVAL(num, 1, 0);
167 zval *num; local
169 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &num) == FAILURE) {
173 RETVAL_ZVAL(num, 1, 0);
196 zval *num; local
197 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &num) == FAILURE) {
201 RETVAL_STR(zval_get_string(num));
[all...]
/PHP_TRUNK/win32/
H A Dregistry.c94 ulong num; local
97 ZEND_HASH_FOREACH_KEY_VAL(parent_ht, num, index, tmpdata) {
243 zend_ulong num; local
246 ZEND_HASH_FOREACH_KEY_VAL(ht, num, index, data) {
252 zend_hash_get_current_key_ex(ht, &index, &index_len, &num, 0, &pos) == HASH_KEY_IS_STRING;
/PHP_TRUNK/ext/bcmath/
H A Dbcmath.c191 static void php_str2num(bc_num *num, char *str TSRMLS_DC) argument
196 bc_str2num(num, str, 0 TSRMLS_CC);
200 bc_str2num(num, str, strlen(p+1) TSRMLS_CC);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c58 int num; /* variable number or class name literal number */ member in union:_literal_info::__anon4
71 info[n].u.num = (_num); \
76 info[n].u.num = (_num); \
391 key->len = snprintf(key->val, key->len-1, "%d->%s", info[i].u.num, Z_STRVAL(op_array->literals[i]));
394 zval *class_name = &op_array->literals[(info[i].u.num < i) ? map[info[i].u.num] : info[i].u.num];

Completed in 30 milliseconds

123