Searched defs:num (Results 1 - 25 of 60) 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_smart_str.h104 static zend_always_inline void smart_str_append_long_ex(smart_str *dest, zend_long num, zend_bool persistent) { argument
106 char *result = zend_print_long_to_buf(buf + sizeof(buf) - 1, num);
110 static zend_always_inline void smart_str_append_unsigned_ex(smart_str *dest, zend_ulong num, zend_bool persistent) { argument
112 char *result = zend_print_ulong_to_buf(buf + sizeof(buf) - 1, num);
H A Dzend_operators.h906 static zend_always_inline char *zend_print_ulong_to_buf(char *buf, zend_ulong num) { argument
909 *--buf = (char) (num % 10) + '0';
910 num /= 10;
911 } while (num > 0);
916 static zend_always_inline char *zend_print_long_to_buf(char *buf, zend_long num) { argument
917 if (num < 0) {
918 char *result = zend_print_ulong_to_buf(buf, ~((zend_ulong) num) + 1);
922 return zend_print_ulong_to_buf(buf, num);
926 ZEND_API zend_string* ZEND_FASTCALL zend_long_to_str(zend_long num);
/PHP_TRUNK/ext/mbstring/oniguruma/enc/
H A Dmktable.c60 int num; member in struct:__anon215
1112 enc = einfo->num;
/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Ddebug.c51 pn (bc_num num) argument
53 bc_out_num (num, 10, out_char, 0);
60 pv (name, num, len)
62 unsigned char *num;
67 for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
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
127 bc_init_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) argument
92 bc_out_num (bc_num num, int o_base, void (*out_char)(), int leading_zero)
101 if (num->n_sign == MINUS) (*out_char) ('-');
104 if (bc_is_zero (num))
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))
121 if (num->n_scale > 0)
124 for (index=0; index<num
[all...]
H A Dsqrt.c45 bc_sqrt (bc_num *num, int scale) 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) 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;
H A Dzero.c44 bc_is_zero (bc_num num) argument
50 if (num == BCG(_zero_)) return TRUE;
53 count = num->n_len + num->n_scale;
54 nptr = num->n_value;
/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);
130 if (size == num && !memcmp(buf, key, size)) {
143 num = atoi(buf);
144 if (num >= buf_size) {
145 buf_size = num
161 size_t num; local
203 size_t num; local
246 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; \
115 int num; member in struct:__anon13
H A Dphpdbg_frame.c31 if (PHPDBG_FRAME(num) == 0) {
35 PHPDBG_FRAME(num) = 0;
45 zend_execute_data *execute_data = PHPDBG_FRAME(num)?PHPDBG_FRAME(execute_data):EG(current_execute_data);
48 if (PHPDBG_FRAME(num) == frame) {
76 PHPDBG_FRAME(num) = frame;
184 void phpdbg_dump_backtrace(size_t num) /* {{{ */ argument
192 int i = 0, limit = num;
/PHP_TRUNK/ext/bcmath/
H A Dbcmath.c197 static void php_str2num(bc_num *num, char *str) argument
202 bc_str2num(num, str, 0);
206 bc_str2num(num, str, strlen(p+1));
/PHP_TRUNK/win32/
H A Dregistry.c118 zend_ulong num; local
121 ZEND_HASH_FOREACH_KEY_VAL(parent_ht, num, index, tmpdata) {
/PHP_TRUNK/ext/json/
H A Djson_encoder.c106 char num[PHP_JSON_DOUBLE_MAX_LENGTH]; local
107 php_gcvt(d, (int)EG(precision), '.', 'e', &num[0]); local
108 len = strlen(num);
109 if (options & PHP_JSON_PRESERVE_ZERO_FRACTION && strchr(num, '.') == NULL && len < PHP_JSON_DOUBLE_MAX_LENGTH - 2) {
110 num[len++] = '.';
111 num[len++] = '0';
112 num[len] = '\0';
114 smart_str_appendl(buf, num, len);
/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/standard/
H A Dformatted_print.c315 register zend_ulong num; local
324 num = (zend_ulong) number;
328 numbuf[--i] = chartable[(num & andbits)];
329 num >>= n;
331 while (num > 0);
344 register zend_long num = ZEND_STRTOL(&buffer[*pos], &endptr, 10); local
353 if (num >= INT_MAX || num < 0) {
356 return (int) num;
H A Dtype.c139 zval *num; local
146 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z|l", &num, &base) == FAILURE) {
151 Z_PARAM_ZVAL(num)
157 ZVAL_DUP(return_value, num);
166 zval *num; local
168 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &num) == FAILURE) {
172 RETURN_DOUBLE(zval_get_double(num));
194 zval *num; local
197 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &num) == FAILURE) {
202 Z_PARAM_ZVAL(num)
[all...]
H A Dmath.c422 double num; local
425 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &num) == FAILURE) {
430 Z_PARAM_DOUBLE(num)
433 RETURN_DOUBLE(sin(num));
441 double num; local
444 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &num) == FAILURE) {
449 Z_PARAM_DOUBLE(num)
452 RETURN_DOUBLE(cos(num));
460 double num; local
463 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &num)
479 double num; local
498 double num; local
517 double num; local
556 double num; local
575 double num; local
594 double num; local
613 double num; local
632 double num; local
651 double num; local
749 double num; local
773 double num; local
797 double num; local
817 double num, base = 0; local
862 double num; local
882 double num; local
970 zend_long num = 0, digit, onum; local
1014 zend_long num = 0; local
1390 double num; local
[all...]
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_convert.c309 zval* num = collator_convert_string_to_number_if_possible( str, rv ); local
310 if( num == str )
313 zval_ptr_dtor( num );
315 num = rv;
316 ZVAL_LONG( num, 0 );
319 return num;
333 zval* num = collator_convert_string_to_number( str, rv ); local
334 if( Z_TYPE_P(num) == IS_LONG )
336 ZVAL_DOUBLE( num, Z_LVAL_P( num ) );
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_temp_vars_5.c82 int num = (((opline->extended_value + 1) * sizeof(zend_string*)) + (sizeof(zval) - 1)) / sizeof(zval); local
89 max = MAX(max, var + num);
95 while (num > 1) {
96 num--;
97 taken_T[var + num] = 1;
165 uint32_t num = ((opline->extended_value * sizeof(zend_string*)) + (sizeof(zval) - 1)) / sizeof(zval); local
166 while (num > 1) {
167 num--;
168 taken_T[map_T[currT]+num] = 0;
H A Dcompact_literals.c59 int num; /* variable number or class name literal number */ member in union:_literal_info::__anon1
72 info[n].u.num = (_num); \
77 info[n].u.num = (_num); \
300 if (opline->op2.num != -1) {
301 opline->op2.num = cache_size;
426 ZSTR_LEN(key) = snprintf(ZSTR_VAL(key), ZSTR_LEN(key)-1, "%d->%s", info[i].u.num, Z_STRVAL(op_array->literals[i]));
429 zval *class_name = &op_array->literals[(info[i].u.num < i) ? map[info[i].u.num] : info[i].u.num];

Completed in 23 milliseconds

123