Searched refs:n_scale (Results 1 – 17 of 17) sorted by relevance
/PHP-8.3/ext/bcmath/libbcmath/src/ |
H A D | compare.c | 78 size_t count = n1->n_len + MIN (n1->n_scale, n2->n_scale); in _bc_do_compare() 88 if (ignore_last && count == 1 && n1->n_scale == n2->n_scale) { in _bc_do_compare() 110 if (n1->n_scale != n2->n_scale) { in _bc_do_compare() 111 if (n1->n_scale > n2->n_scale) { in _bc_do_compare() 112 for (count = n1->n_scale - n2->n_scale; count > 0; count--) { in _bc_do_compare() 123 for (count = n2->n_scale - n1->n_scale; count > 0; count--) { in _bc_do_compare()
|
H A D | doaddsub.c | 50 sum_scale = MAX (n1->n_scale, n2->n_scale); in _bc_do_add() 63 n1bytes = n1->n_scale; in _bc_do_add() 64 n2bytes = n2->n_scale; in _bc_do_add() 143 diff_scale = MAX(n1->n_scale, n2->n_scale); in _bc_do_sub() 145 min_scale = MIN(n1->n_scale, n2->n_scale); in _bc_do_sub() 157 n1ptr = (char *) (n1->n_value + n1->n_len + n1->n_scale - 1); in _bc_do_sub() 158 n2ptr = (char *) (n2->n_value + n2->n_len + n2->n_scale - 1); in _bc_do_sub() 165 if (n1->n_scale != min_scale) { in _bc_do_sub() 167 for (count = n1->n_scale - min_scale; count > 0; count--) { in _bc_do_sub() 172 for (count = n2->n_scale - min_scale; count > 0; count--) { in _bc_do_sub()
|
H A D | raise.c | 64 rscale = MIN (num1->n_scale * exponent, MAX(scale, num1->n_scale)); in bc_raise() 69 pwrscale = num1->n_scale; in bc_raise() 97 if ((*result)->n_scale > rscale) { in bc_raise() 98 (*result)->n_scale = rscale; in bc_raise() 108 assert(expo->n_scale == 0); in bc_raise_bc_exponent()
|
H A D | raisemod.c | 43 if (base->n_scale != 0) { in bc_raisemod() 47 if (expo->n_scale != 0) { in bc_raisemod() 54 if (mod->n_scale != 0) { in bc_raisemod() 70 rscale = MAX(scale, power->n_scale); in bc_raisemod()
|
H A D | add.c | 60 sum = bc_new_num (1, MAX(scale_min, MAX(n1->n_scale, n2->n_scale))); in bc_add() 61 memset(sum->n_value, 0, sum->n_scale + 1); in bc_add()
|
H A D | recmul.c | 57 temp->n_scale = scale; in new_sub_num() 107 assert(accum->n_len + accum->n_scale >= shift + count); in _bc_shift_addsub() 110 accp = (signed char *) (accum->n_value + accum->n_len + accum->n_scale - shift - 1); in _bc_shift_addsub() 266 len1 = n1->n_len + n1->n_scale; in bc_multiply() 267 len2 = n2->n_len + n2->n_scale; in bc_multiply() 268 full_scale = n1->n_scale + n2->n_scale; in bc_multiply() 269 prod_scale = MIN(full_scale, MAX(scale, MAX(n1->n_scale, n2->n_scale))); in bc_multiply() 278 pval->n_scale = prod_scale; in bc_multiply()
|
H A D | num2str.c | 45 signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, MIN(num->n_scale, scale)); in bc_num2str_ex() 66 for (index = 0; index < scale && index < num->n_scale; index++) { in bc_num2str_ex() 69 for (index = num->n_scale; index < scale; index++) { in bc_num2str_ex()
|
H A D | nearzero.c | 43 if (scale > num->n_scale) { in bc_is_near_zero() 44 scale = num->n_scale; in bc_is_near_zero()
|
H A D | output.c | 107 if (num->n_scale > 0) { in bc_out_num() 109 for (index = 0; index < num->n_scale; index++) { in bc_out_num() 161 if (num->n_scale > 0) { in bc_out_num() 165 while (t_num->n_len <= num->n_scale) { in bc_out_num() 166 bc_multiply(frac_part, base, &frac_part, num->n_scale); in bc_out_num()
|
H A D | div.c | 97 if (n2->n_scale == 0 && n2->n_len == 1 && *n2->n_value == 1) { in bc_divide() 101 memcpy(qval->n_value, n1->n_value, n1->n_len + MIN(n1->n_scale, scale)); in bc_divide() 108 scale2 = n2->n_scale; in bc_divide() 116 scale1 = n1->n_scale - scale2; in bc_divide() 119 num1 = (unsigned char *) safe_emalloc(1, n1->n_len + n1->n_scale, extra + 2); in bc_divide() 120 memset(num1, 0, n1->n_len + n1->n_scale + extra + 2); in bc_divide() 121 memcpy(num1 + 1, n1->n_value, n1->n_len + n1->n_scale); in bc_divide()
|
H A D | sqrt.c | 64 rscale = MAX (scale, (*num)->n_scale); in bc_sqrt() 75 cscale = (*num)->n_scale; in bc_sqrt() 83 guess1->n_scale = 0; in bc_sqrt()
|
H A D | divmod.c | 56 rscale = MAX (num1->n_scale, num2->n_scale + scale); in bc_divmod()
|
H A D | sub.c | 60 size_t res_scale = MAX (scale_min, MAX(n1->n_scale, n2->n_scale)); in bc_sub()
|
H A D | zero.c | 60 return bc_is_zero_for_scale(num, num->n_scale); in bc_is_zero()
|
H A D | bcmath.h | 44 size_t n_scale; /* The number of digits after the decimal point. */ member 150 #define bc_num2str(num) bc_num2str_ex((num), (num->n_scale))
|
H A D | init.c | 45 temp->n_scale = scale; in _bc_new_num_ex()
|
/PHP-8.3/ext/bcmath/ |
H A D | bcmath.c | 534 if (bc_exponent->n_scale != 0) { in PHP_FUNCTION()
|
Completed in 22 milliseconds