Home
last modified time | relevance | path

Searched refs:n_value (Results 1 – 19 of 19) sorted by relevance

/PHP-8.3/ext/bcmath/libbcmath/src/
H A Drecmul.c60 temp->n_value = value; in new_sub_num()
74 n1end = (char *) (n1->n_value + n1len - 1); in _bc_simp_mul()
75 n2end = (char *) (n2->n_value + n2len - 1); in _bc_simp_mul()
104 if (val->n_value[0] == 0) { in _bc_shift_addsub()
186 u0 = new_sub_num(ulen, 0, u->n_value); in _bc_rec_mul()
188 u1 = new_sub_num(ulen - n, 0, u->n_value); in _bc_rec_mul()
189 u0 = new_sub_num(n, 0, u->n_value + ulen - n); in _bc_rec_mul()
193 v0 = new_sub_num(vlen, 0, v->n_value); in _bc_rec_mul()
195 v1 = new_sub_num(vlen - n, 0, v->n_value); in _bc_rec_mul()
196 v0 = new_sub_num(n, 0, v->n_value + vlen - n); in _bc_rec_mul()
[all …]
H A Ddiv.c97 if (n2->n_scale == 0 && n2->n_len == 1 && *n2->n_value == 1) { in bc_divide()
100 memset(&qval->n_value[n1->n_len], 0, scale); in bc_divide()
101 memcpy(qval->n_value, n1->n_value, n1->n_len + MIN(n1->n_scale, scale)); in bc_divide()
109 n2ptr = (unsigned char *) n2->n_value + n2->n_len + scale2 - 1; in bc_divide()
121 memcpy(num1 + 1, n1->n_value, n1->n_len + n1->n_scale); in bc_divide()
125 memcpy(num2, n2->n_value, len2); in bc_divide()
149 memset(qval->n_value, 0, qdigits); in bc_divide()
166 qptr = (unsigned char *) qval->n_value + len2 - len1; in bc_divide()
168 qptr = (unsigned char *) qval->n_value; in bc_divide()
H A Ddoaddsub.c56 sumptr = (char *) (sum->n_value + sum_scale + sum_digits); in _bc_do_add()
65 n1ptr = (char *) (n1->n_value + n1->n_len + n1bytes - 1); in _bc_do_add()
66 n2ptr = (char *) (n2->n_value + n2->n_len + n2bytes - 1); in _bc_do_add()
67 sumptr = (char *) (sum->n_value + sum_scale + sum_digits - 1); in _bc_do_add()
150 diffptr = (char *) (diff->n_value + diff_len + diff_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()
159 diffptr = (char *) (diff->n_value + diff_len + diff_scale - 1); in _bc_do_sub()
H A Drmzero.c42 while (*num->n_value == 0 && num->n_len > 1) { in _bc_rm_leading_zeros()
43 num->n_value++; in _bc_rm_leading_zeros()
H A Dinit.c49 temp->n_value = temp->n_ptr; in _bc_new_num_ex()
80 BCG(_one_)->n_value[0] = 1; in bc_init_numbers()
82 BCG(_two_)->n_value[0] = 2; in bc_init_numbers()
H A Dcompare.c79 n1ptr = n1->n_value; in _bc_do_compare()
80 n2ptr = n2->n_value; in _bc_do_compare()
H A Dnearzero.c49 const char *nptr = num->n_value; in bc_is_near_zero()
H A Dzero.c50 nptr = num->n_value; in bc_is_zero_for_scale()
H A Dnum2long.c44 const char *nptr = num->n_value; in bc_num2long()
H A Dint2num.c70 vptr = (*num)->n_value; in bc_int2num()
H A Dadd.c61 memset(sum->n_value, 0, sum->n_scale + 1); in bc_add()
H A Dsub.c62 memset(diff->n_value, 0, res_scale + 1); in bc_sub()
H A Dnum2str.c58 const char *nptr = num->n_value; in bc_num2str_ex()
H A Dstr2num.c110 nptr = (*num)->n_value; in bc_str2num()
H A Draise.c112 if (exponent == 0 && (expo->n_len > 1 || expo->n_value[0] != 0)) { in bc_raise_bc_exponent()
H A Dsqrt.c68 point5->n_value[1] = 5; in bc_sqrt()
H A Doutput.c93 nptr = num->n_value; in bc_out_num()
H A Dbcmath.h49 char *n_value; /* The number. Not zero char terminated. member
/PHP-8.3/ext/bcmath/
H A Dbcmath.c539 if (exponent == 0 && (bc_exponent->n_len > 1 || bc_exponent->n_value[0] != 0)) { in PHP_FUNCTION()

Completed in 33 milliseconds