Home
last modified time | relevance | path

Searched refs:n_scale (Results 1 – 17 of 17) sorted by relevance

/PHP-5.6/ext/bcmath/libbcmath/src/
H A Dcompare.c87 count = n1->n_len + MIN (n1->n_scale, n2->n_scale);
97 if (ignore_last && count == 1 && n1->n_scale == n2->n_scale)
120 if (n1->n_scale != n2->n_scale)
122 if (n1->n_scale > n2->n_scale)
124 for (count = n1->n_scale-n2->n_scale; count>0; count--)
136 for (count = n2->n_scale-n1->n_scale; count>0; count--)
H A Ddoaddsub.c58 sum_scale = MAX (n1->n_scale, n2->n_scale);
71 n1bytes = n1->n_scale;
72 n2bytes = n2->n_scale;
151 diff_scale = MAX (n1->n_scale, n2->n_scale);
153 min_scale = MIN (n1->n_scale, n2->n_scale);
165 n1ptr = (char *) (n1->n_value + n1->n_len + n1->n_scale -1);
166 n2ptr = (char *) (n2->n_value + n2->n_len + n2->n_scale -1);
173 if (n1->n_scale != min_scale)
176 for (count = n1->n_scale - min_scale; count > 0; count--)
182 for (count = n2->n_scale - min_scale; count > 0; count--)
H A Draise.c57 if (num2->n_scale != 0) in bc_raise()
81 rscale = MIN (num1->n_scale*exponent, MAX(scale, num1->n_scale)); in bc_raise()
86 pwrscale = num1->n_scale; in bc_raise()
119 if ((*result)->n_scale > rscale) in bc_raise()
120 (*result)->n_scale = rscale; in bc_raise()
H A Dnum2str.c53 if (num->n_scale > 0)
54 str = (char *) safe_emalloc (1, num->n_len + num->n_scale, 2 + signch);
69 if (num->n_scale > 0)
72 for (index=0; index<num->n_scale; index++)
H A Draisemod.c62 if (base->n_scale != 0) in bc_raisemod()
66 if (exponent->n_scale != 0) in bc_raisemod()
73 if (mod->n_scale != 0) in bc_raisemod()
77 rscale = MAX(scale, base->n_scale); in bc_raisemod()
H A Drecmul.c73 temp->n_scale = scale;
124 assert (accum->n_len+accum->n_scale >= shift+count); in _bc_shift_addsub()
128 accum->n_len + accum->n_scale - shift - 1); in _bc_shift_addsub()
285 len1 = n1->n_len + n1->n_scale; in bc_multiply()
286 len2 = n2->n_len + n2->n_scale; in bc_multiply()
287 full_scale = n1->n_scale + n2->n_scale; in bc_multiply()
288 prod_scale = MIN(full_scale,MAX(scale,MAX(n1->n_scale,n2->n_scale))); in bc_multiply()
297 pval->n_scale = prod_scale; in bc_multiply()
H A Ddiv.c104 if (n2->n_scale == 0) in bc_divide()
112 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide()
120 scale2 = n2->n_scale; in bc_divide()
125 scale1 = n1->n_scale - scale2; in bc_divide()
130 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide()
132 memset (num1, 0, n1->n_len+n1->n_scale+extra+2); in bc_divide()
133 memcpy (num1+1, n1->n_value, n1->n_len+n1->n_scale); in bc_divide()
H A Dnearzero.c54 if (scale > num->n_scale)
55 scale = num->n_scale;
H A Doutput.c121 if (num->n_scale > 0) in bc_out_num()
124 for (index=0; index<num->n_scale; index++) in bc_out_num()
180 if (num->n_scale > 0) in bc_out_num()
185 while (t_num->n_len <= num->n_scale) { in bc_out_num()
186 bc_multiply (frac_part, base, &frac_part, num->n_scale TSRMLS_CC); in bc_out_num()
H A Dsqrt.c73 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt()
86 cscale = (*num)->n_scale; in bc_sqrt()
95 guess1->n_scale = 0; in bc_sqrt()
H A Dadd.c73 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale));
H A Ddivmod.c58 rscale = MAX (num1->n_scale, num2->n_scale+scale); in bc_divmod()
H A Dsub.c74 res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale));
H A Dzero.c53 count = num->n_len + num->n_scale; in bc_is_zero()
H A Dinit.c69 temp->n_scale = scale;
H A Dbcmath.h43 int n_scale; /* The number of digits after the decimal point. */ member
/PHP-5.6/ext/bcmath/
H A Dbcmath.c244 if (result->n_scale > scale) { in PHP_FUNCTION()
246 result->n_scale = scale; in PHP_FUNCTION()
284 if (result->n_scale > scale) { in PHP_FUNCTION()
286 result->n_scale = scale; in PHP_FUNCTION()
324 if (result->n_scale > scale) { in PHP_FUNCTION()
326 result->n_scale = scale; in PHP_FUNCTION()
367 result->n_scale = scale; in PHP_FUNCTION()
448 result->n_scale = scale_int; in PHP_FUNCTION()
490 if (result->n_scale > scale) { in PHP_FUNCTION()
492 result->n_scale = scale; in PHP_FUNCTION()
[all …]

Completed in 34 milliseconds