Searched refs:n_len (Results 1 – 17 of 17) sorted by relevance
/php-src/ext/bcmath/libbcmath/src/ |
H A D | doaddsub.c | 44 size_t sum_len = MAX(n1->n_len, n2->n_len) + 1; in _bc_do_add() 46 size_t min_len = MIN (n1->n_len, n2->n_len); in _bc_do_add() 57 n1ptr = (char *) (n1->n_value + n1->n_len + n1->n_scale - 1); in _bc_do_add() 58 n2ptr = (char *) (n2->n_value + n2->n_len + n2->n_scale - 1); in _bc_do_add() 143 if (n1->n_len != n2->n_len) { in _bc_do_add() 144 if (n2->n_len > n1->n_len) { in _bc_do_add() 176 size_t diff_len = EXPECTED(n1->n_len >= n2->n_len) ? n1->n_len : n2->n_len; in _bc_do_sub() 179 size_t min_len = n1->n_len >= n2->n_len ? n2->n_len : n1->n_len; in _bc_do_sub() 191 n1ptr = (char *) (n1->n_value + n1->n_len + n1->n_scale - 1); in _bc_do_sub() 192 n2ptr = (char *) (n2->n_value + n2->n_len + n2->n_scale - 1); in _bc_do_sub()
|
H A D | round.c | 36 if (precision < 0 && num->n_len < (size_t) (-(precision + Z_L(1))) + 1) { in bc_round() 45 *result = bc_new_num(num->n_len, precision); in bc_round() 47 memcpy((*result)->n_value, num->n_value, num->n_len + num->n_scale); in bc_round() 56 size_t rounded_len = num->n_len + precision; in bc_round() 66 *result = bc_new_num(num->n_len, precision > 0 ? precision : 0); in bc_round() 126 size_t count = num->n_len + num->n_scale - rounded_len - 1; in bc_round() 164 tmp = bc_new_num(num->n_len + 1, 0); in bc_round() 168 bc_num scaled_one = bc_new_num((*result)->n_len, (*result)->n_scale); in bc_round()
|
H A D | rmzero.c | 42 while (*num->n_value == 0 && num->n_len > 1) { in _bc_rm_leading_zeros() 44 num->n_len--; in _bc_rm_leading_zeros() 54 char *end = num->n_value + num->n_len + num->n_scale - 1; in bc_rm_trailing_zeros()
|
H A D | num2str.c | 49 str = zend_string_alloc(num->n_len + scale + signch + 1, 0); in bc_num2str_ex() 51 str = zend_string_alloc(num->n_len + signch, 0); in bc_num2str_ex() 60 sptr = bc_copy_and_toggle_bcd(sptr, nptr, nptr + num->n_len); in bc_num2str_ex() 61 nptr += num->n_len; in bc_num2str_ex()
|
H A D | compare.c | 58 if (n1->n_len != n2->n_len) { in _bc_do_compare() 59 if (n1->n_len > n2->n_len) { in _bc_do_compare() 81 size_t count = n1->n_len + MIN (n1_scale, n2_scale); in _bc_do_compare()
|
H A D | floor_or_ceil.c | 24 bc_num result = bc_new_num(num->n_len, 0); in bc_floor_or_ceil() 28 memcpy(result->n_value, num->n_value, num->n_len); in bc_floor_or_ceil() 38 const char *nptr = num->n_value + num->n_len; in bc_floor_or_ceil()
|
H A D | recmul.c | 248 size_t len1 = n1->n_len + n1->n_scale; in bc_multiply() 249 size_t len2 = n2->n_len + n2->n_scale; in bc_multiply() 262 prod->n_len -= full_scale; in bc_multiply() 275 size_t len1 = n1->n_len + n1->n_scale; in bc_square() 286 prod->n_len -= full_scale; in bc_square()
|
H A D | nearzero.c | 48 size_t count = num->n_len + scale; in bc_is_near_zero()
|
H A D | zero.c | 49 count = num->n_len + scale; in bc_is_zero_for_scale()
|
H A D | num2long.c | 45 for (size_t index = num->n_len; index > 0; index--) { in bc_num2long()
|
H A D | div.c | 349 *quot = bc_new_num_nonzeroed(numerator->n_len, quot_scale); in bc_divide() 351 memcpy(qptr, numerator->n_value, numerator->n_len + quot_scale); in bc_divide() 358 char *numeratorend = numeratorptr + numerator->n_len + numerator->n_scale - 1; in bc_divide() 359 size_t numerator_len = numerator->n_len; in bc_divide() 363 char *divisorend = divisorptr + divisor->n_len + divisor->n_scale - 1; in bc_divide() 364 size_t divisor_len = divisor->n_len; in bc_divide()
|
H A D | init.c | 55 temp->n_len = length; in _bc_new_num_nonzeroed_ex_internal()
|
H A D | sqrt.c | 83 bc_int2num(&guess1, local_num->n_len); in bc_sqrt()
|
H A D | raise.c | 117 if (exponent == 0 && (expo->n_len > 1 || expo->n_value[0] != 0)) { in bc_raise_bc_exponent()
|
H A D | bcmath.h | 42 size_t n_len; /* The number of digits before the decimal point. */ member
|
/php-src/ext/sodium/ |
H A D | libsodium.c | 2593 size_t n_len; in PHP_FUNCTION() local 2597 &n, &n_len, &p, &p_len) == FAILURE) { in PHP_FUNCTION() 2601 if (n_len != crypto_scalarmult_SCALARBYTES) { in PHP_FUNCTION() 2626 size_t n_len; in PHP_FUNCTION() local 2630 &n, &n_len, &p, &p_len) == FAILURE) { in PHP_FUNCTION() 2634 if (n_len != crypto_scalarmult_ristretto255_SCALARBYTES) { in PHP_FUNCTION() 2659 size_t n_len; in PHP_FUNCTION() local 2662 &n, &n_len) == FAILURE) { in PHP_FUNCTION() 2666 if (n_len != crypto_scalarmult_ristretto255_SCALARBYTES) { in PHP_FUNCTION()
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 613 if (exponent == 0 && (bc_exponent->n_len > 1 || bc_exponent->n_value[0] != 0)) { in PHP_FUNCTION() 1139 if (UNEXPECTED(exponent == 0 && (n2->n_len > 1 || n2->n_value[0] != 0))) { in bcmath_number_pow_internal()
|
Completed in 32 milliseconds