Searched refs:num (Results 1 - 25 of 99) sorted by relevance

1234

/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dint2num.c45 bc_int2num (num, val)
46 bc_num *num;
75 bc_free_num (num);
76 *num = bc_new_num (ix, 0);
77 if (neg) (*num)->n_sign = MINUS;
80 vptr = (*num)->n_value;
H A Dnearzero.c46 bc_is_near_zero (num, scale)
47 bc_num num;
54 if (scale > num->n_scale)
55 scale = num->n_scale;
58 count = num->n_len + scale;
59 nptr = num->n_value;
H A Dneg.c44 bc_is_neg (num)
45 bc_num num;
47 return num->n_sign == MINUS;
H A Dnum2long.c47 bc_num2long (num)
48 bc_num num;
56 nptr = num->n_value;
57 for (index=num->n_len; (index>0) && (val<=(LONG_MAX/BASE)); index--)
65 if (num->n_sign == PLUS)
H A Dprivate.h43 void _bc_rm_leading_zeros (bc_num num);
H A Drmzero.c46 _bc_rm_leading_zeros (num)
47 bc_num num;
50 while (*num->n_value == 0 && num->n_len > 1) {
51 num->n_value++;
52 num->n_len--;
H A Dnum2str.c44 *bc_num2str (num)
45 bc_num num;
53 signch = ( num->n_sign == PLUS ? 0 : 1 ); /* Number of sign chars. */
54 if (num->n_scale > 0)
55 str = zend_string_alloc(num->n_len + num->n_scale + signch + 1, 0);
57 str = zend_string_alloc(num->n_len + signch, 0);
65 nptr = num->n_value;
66 for (index=num->n_len; index>0; index--)
70 if (num
[all...]
H A Dbcmath.h106 _PROTOTYPE(void _bc_free_num_ex, (bc_num *num, int persistent));
108 _PROTOTYPE(bc_num bc_copy_num, (bc_num num));
110 _PROTOTYPE(void bc_init_num, (bc_num *num));
112 _PROTOTYPE(void bc_str2num, (bc_num *num, char *str, int scale));
114 _PROTOTYPE(zend_string *bc_num2str, (bc_num num));
116 _PROTOTYPE(void bc_int2num, (bc_num *num, int val));
118 _PROTOTYPE(long bc_num2long, (bc_num num));
122 _PROTOTYPE(char bc_is_zero, (bc_num num));
124 _PROTOTYPE(char bc_is_near_zero, (bc_num num, int scale));
126 _PROTOTYPE(char bc_is_neg, (bc_num num));
[all...]
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/standard/
H A Dphp_smart_string.h120 #define smart_string_append_generic_ex(dest, num, type, vartype, func) do { \
122 char *__t = zend_print##func##_to_buf(__b + sizeof(__b) - 1, (num)); \
126 #define smart_string_append_unsigned_ex(dest, num, type) \
127 smart_string_append_generic_ex((dest), (num), (type), zend_ulong, _ulong)
129 #define smart_string_append_long_ex(dest, num, type) \
130 smart_string_append_generic_ex((dest), (num), (type), zend_ulong, _long)
H A Dmath.c400 double num; local
403 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &num) == FAILURE) {
408 Z_PARAM_DOUBLE(num)
411 RETURN_DOUBLE(sin(num));
419 double num; local
422 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &num) == FAILURE) {
427 Z_PARAM_DOUBLE(num)
430 RETURN_DOUBLE(cos(num));
438 double num; local
441 if (zend_parse_parameters(ZEND_NUM_ARGS(), "d", &num)
457 double num; local
476 double num; local
495 double num; local
534 double num; local
553 double num; local
572 double num; local
591 double num; local
610 double num; local
629 double num; local
727 double num; local
751 double num; local
775 double num; local
795 double num, base = 0; local
840 double num; local
860 double num; local
948 zend_long num = 0, digit, onum; local
992 zend_long num = 0; local
1368 double num; local
[all...]
H A Dtype.c140 zval *num; local
147 if (zend_parse_parameters(ZEND_NUM_ARGS(), "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(), "z", &num) == FAILURE) {
173 RETVAL_ZVAL(num, 1, 0);
196 zval *num; local
197 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &num) == FAILURE) {
201 RETVAL_STR(zval_get_string(num));
[all...]
/PHP_TRUNK/sapi/phpdbg/tests/
H A Drun-tests.php451 foreach (preg_split('~(\r|\n)~', $result) as $num => $line) {
452 if (!$line && !isset($this->match[$num]))
457 if (strcmp($line, $this->match[$num]) !== 0) {
458 $this->diff['wants'][$num] = &$this->match[$num];
459 $this->diff['gets'][$num] = $line;
464 if (strpos($line, $this->match[$num]) === false) {
465 $this->diff['wants'][$num] = &$this->match[$num];
466 $this->diff['gets'][$num]
[all...]
/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/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/sapi/phpdbg/
H A Dphpdbg_break.c52 phpdbg_delete_breakpoint(param->num);
H A Dphpdbg_cmd.c106 asprintf(pointer, "%li", param->num);
114 if (param->num) {
115 asprintf(pointer, "%s:%lu#%lu", param->file.name, param->file.line, param->num);
122 asprintf(pointer, "%s#%lu", param->str, param->num);
126 asprintf(pointer, "%s::%s#%lu", param->method.class, param->method.name, param->num);
158 dest->num = src->num;
170 if (src->num)
171 dest->num = src->num;
[all...]
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;
169 void phpdbg_dump_backtrace(size_t num) /* {{{ */ argument
175 int i = 0, limit = num;
H A Dphpdbg_parser.y80 $$.file.line = $3.num;
85 $$.file.line = $4.num;
95 $$.file.line = $4.num;
105 $$.file.line = $5.num;
116 $$.num = $5.num;
122 $$.num = $3.num;
139 : T_REQ_ID { PHPDBG_G(req_id) = $1.num; }
H A Dphpdbg_set.c64 if (param->next->num) {
65 phpdbg_enable_breakpoint(param->num);
67 phpdbg_disable_breakpoint(param->num);
70 phpdbg_breakbase_t *brake = phpdbg_find_breakbase(param->num);
72 phpdbg_writeln("setbreak", "id=\"%ld\" active=\"%s\"", "Breakpoint #%ld %s", param->num, brake->disabled ? "off" : "on");
74 phpdbg_error("setbreak", "type=\"nobreak\" id=\"%ld\"", "Failed to find breakpoint #%ld", param->num);
92 if (param->num) {
149 if (param->num) {
199 if (param->num) {
239 if (param->num) {
[all...]

Completed in 25 milliseconds

1234