Home
last modified time | relevance | path

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

/php-src/ext/bcmath/libbcmath/src/
H A Dround.c47 memcpy((*result)->n_value, num->n_value, num->n_len + num->n_scale); in bc_round()
67 memcpy((*result)->n_value, num->n_value, rounded_len); in bc_round()
71 const char *nptr = num->n_value + rounded_len; in bc_round()
145 if (rounded_len == 0 || num->n_value[rounded_len - 1] % 2 == 0) { in bc_round()
151 if (rounded_len != 0 && num->n_value[rounded_len - 1] % 2 == 1) { in bc_round()
165 tmp->n_value[0] = 1; in bc_round()
169 scaled_one->n_value[rounded_len - 1] = 1; in bc_round()
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()
54 char *end = num->n_value + num->n_len + num->n_scale - 1; in bc_rm_trailing_zeros()
H A Dfloor_or_ceil.c28 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 Dinit.c57 temp->n_value = (char *) temp + sizeof(bc_struct); in _bc_new_num_nonzeroed_ex_internal()
65 memset(temp->n_value, 0, length + scale); in _bc_new_num_ex()
95 BCG(_one_)->n_value[0] = 1; in bc_init_numbers()
97 BCG(_two_)->n_value[0] = 2; in bc_init_numbers()
H A Drecmul.c57 const char *n1end = n1->n_value + n1len - 1; in bc_fast_mul()
58 const char *n2end = n2->n_value + n2len - 1; in bc_fast_mul()
66 char *pptr = (*prod)->n_value; in bc_fast_mul()
81 const char *n1end = n1->n_value + n1len - 1; in bc_fast_square()
88 char *pptr = (*prod)->n_value; in bc_fast_square()
108 char *pptr = (*prod)->n_value; in bc_mul_finish_from_vector()
144 const char *n1end = n1->n_value + n1len - 1; in bc_standard_mul()
145 const char *n2end = n2->n_value + n2len - 1; in bc_standard_mul()
198 const char *n1end = n1->n_value + n1len - 1; in bc_standard_square()
H A Ddoaddsub.c57 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()
59 sumptr = (char *) (sum->n_value + sum_scale + sum_len - 1); in _bc_do_add()
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()
193 diffptr = (char *) (diff->n_value + diff_len + diff_scale - 1); in _bc_do_sub()
H A Dlong2num.c36 bc_copy_and_toggle_bcd(num->n_value, ptr, ptr + BC_LONG_MAX_DIGITS); in bc_long2num()
51 char *ptr = num->n_value + len - 1; in bc_long2num()
H A Dcompare.c82 n1ptr = n1->n_value; in _bc_do_compare()
83 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 Ddiv.c308 char *qptr = (*quot)->n_value; in bc_do_div()
350 char *qptr = (*quot)->n_value; in bc_divide()
351 memcpy(qptr, numerator->n_value, numerator->n_len + quot_scale); in bc_divide()
357 char *numeratorptr = numerator->n_value; in bc_divide()
362 char *divisorptr = divisor->n_value; in bc_divide()
462 char *qptr = (*quot)->n_value; in bc_divide()
H A Dint2num.c70 vptr = (*num)->n_value; in bc_int2num()
H A Dnum2str.c59 const char *nptr = num->n_value; in bc_num2str_ex()
H A Dsqrt.c70 point5->n_value[1] = 5; in bc_sqrt()
H A Draise.c112 if (exponent == 0 && (expo->n_len > 1 || expo->n_value[0] != 0)) { in bc_raise_bc_exponent()
H A Dstr2num.c196 char *nptr = (*num)->n_value; in bc_str2num()
H A Dbcmath.h44 char *n_value; /* The number. Not zero char terminated. */ member
/php-src/ext/bcmath/
H A Dbcmath.c613 if (exponent == 0 && (bc_exponent->n_len > 1 || bc_exponent->n_value[0] != 0)) { in PHP_FUNCTION()
1136 if (UNEXPECTED(exponent == 0 && (n2->n_len > 1 || n2->n_value[0] != 0))) { in bcmath_number_pow_internal()

Completed in 35 milliseconds