Home
last modified time | relevance | path

Searched refs:n_len (Results 1 – 15 of 15) sorted by relevance

/PHP-8.1/ext/bcmath/libbcmath/src/
H A Ddoaddsub.c58 sum_digits = MAX (n1->n_len, n2->n_len) + 1;
72 n1ptr = (char *) (n1->n_value + n1->n_len + n1bytes - 1);
73 n2ptr = (char *) (n2->n_value + n2->n_len + n2bytes - 1);
88 n1bytes += n1->n_len;
89 n2bytes += n2->n_len;
149 diff_len = MAX (n1->n_len, n2->n_len);
151 min_len = MIN (n1->n_len, n2->n_len);
164 n1ptr = (char *) (n1->n_value + n1->n_len + n1->n_scale -1);
165 n2ptr = (char *) (n2->n_value + n2->n_len + n2->n_scale -1);
H A Drecmul.c60 temp->n_len = length; in new_sub_num()
109 count = val->n_len; in _bc_shift_addsub()
112 assert (accum->n_len+accum->n_scale >= shift+count); in _bc_shift_addsub()
116 accum->n_len + accum->n_scale - shift - 1); in _bc_shift_addsub()
216 d1len = d1->n_len; in _bc_rec_mul()
218 d2len = d2->n_len; in _bc_rec_mul()
225 _bc_rec_mul (u1, u1->n_len, v1, v1->n_len, &m1, 0); in _bc_rec_mul()
235 _bc_rec_mul (u0, u0->n_len, v0, v0->n_len, &m3, 0); in _bc_rec_mul()
273 len1 = n1->n_len + n1->n_scale; in bc_multiply()
274 len2 = n2->n_len + n2->n_scale; in bc_multiply()
[all …]
H A Dcompare.c64 if (n1->n_len != n2->n_len)
66 if (n1->n_len > n2->n_len)
86 count = n1->n_len + MIN (n1->n_scale, n2->n_scale);
H A Ddiv.c101 if (n2->n_len == 1 && *n2->n_value == 1) in bc_divide()
103 qval = bc_new_num (n1->n_len, scale); in bc_divide()
105 memset (&qval->n_value[n1->n_len],0,scale); in bc_divide()
107 n1->n_len + MIN(n1->n_scale,scale)); in bc_divide()
116 n2ptr = (unsigned char *) n2->n_value+n2->n_len+scale2-1; in bc_divide()
119 len1 = n1->n_len + scale2; in bc_divide()
125 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide()
126 memset (num1, 0, n1->n_len+n1->n_scale+extra+2); in bc_divide()
127 memcpy (num1+1, n1->n_value, n1->n_len+n1->n_scale); in bc_divide()
129 len2 = n2->n_len + scale2; in bc_divide()
H A Drmzero.c49 while (*num->n_value == 0 && num->n_len > 1) {
51 num->n_len--;
H A Dnum2str.c55 str = zend_string_alloc(num->n_len + scale + signch + 1, 0);
57 str = zend_string_alloc(num->n_len + signch, 0);
65 for (index=num->n_len; index>0; index--)
H A Doutput.c98 if (num->n_len > 1 || *nptr != 0) in bc_out_num()
99 for (index=num->n_len; index>0; index--) in bc_out_num()
160 bc_out_long (temp->digit, max_o_digit->n_len, 1, out_char); in bc_out_num()
171 while (t_num->n_len <= num->n_scale) { in bc_out_num()
179 bc_out_long (fdigit, max_o_digit->n_len, pre_space, out_char); in bc_out_num()
H A Dnearzero.c57 count = num->n_len + scale;
H A Dzero.c52 count = num->n_len + scale; in bc_is_zero_for_scale()
H A Dnum2long.c56 for (index = num->n_len; index > 0; index--) {
H A Dinit.c50 temp->n_len = length;
H A Draise.c62 if (exponent == 0 && (num2->n_len > 1 || num2->n_value[0] != 0)) { in bc_raise()
H A Dsqrt.c92 bc_int2num (&guess1,(*num)->n_len); in bc_sqrt()
H A Dbcmath.h42 int n_len; /* The number of digits before the decimal point. */ member
/PHP-8.1/ext/sodium/
H A Dlibsodium.c2534 size_t n_len; in PHP_FUNCTION() local
2538 &n, &n_len, &p, &p_len) == FAILURE) { in PHP_FUNCTION()
2542 if (n_len != crypto_scalarmult_SCALARBYTES) { in PHP_FUNCTION()
2567 size_t n_len; in PHP_FUNCTION() local
2571 &n, &n_len, &p, &p_len) == FAILURE) { in PHP_FUNCTION()
2575 if (n_len != crypto_scalarmult_ristretto255_SCALARBYTES) { in PHP_FUNCTION()
2600 size_t n_len; in PHP_FUNCTION() local
2603 &n, &n_len) == FAILURE) { in PHP_FUNCTION()
2607 if (n_len != crypto_scalarmult_ristretto255_SCALARBYTES) { in PHP_FUNCTION()

Completed in 30 milliseconds