Home
last modified time | relevance | path

Searched refs:n_sign (Results 1 – 16 of 16) sorted by relevance

/php-src/ext/bcmath/libbcmath/src/
H A Dadd.c46 if (n1->n_sign == n2->n_sign) { in bc_add()
48 sum->n_sign = n1->n_sign; in bc_add()
56 sum->n_sign = n2->n_sign; in bc_add()
65 sum->n_sign = n1->n_sign; in bc_add()
H A Dsub.c46 if (n1->n_sign != n2->n_sign) { in bc_sub()
48 diff->n_sign = n1->n_sign; in bc_sub()
56 diff->n_sign = (n2->n_sign == PLUS ? MINUS : PLUS); in bc_sub()
67 diff->n_sign = n1->n_sign; in bc_sub()
H A Dcompare.c47 if (use_sign && n1->n_sign != n2->n_sign) { in _bc_do_compare()
48 if (n1->n_sign == PLUS) { in _bc_do_compare()
61 if (!use_sign || n1->n_sign == PLUS) { in _bc_do_compare()
68 if (!use_sign || n1->n_sign == PLUS) { in _bc_do_compare()
94 if (!use_sign || n1->n_sign == PLUS) { in _bc_do_compare()
101 if (!use_sign || n1->n_sign == PLUS) { in _bc_do_compare()
115 if (!use_sign || n1->n_sign == PLUS) { in _bc_do_compare()
126 if (!use_sign || n1->n_sign == PLUS) { in _bc_do_compare()
H A Dround.c46 (*result)->n_sign = num->n_sign; in bc_round()
69 (*result)->n_sign = num->n_sign; in bc_round()
95 if (num->n_sign != PLUS) { in bc_round()
104 if (num->n_sign != MINUS) { in bc_round()
166 tmp->n_sign = num->n_sign; in bc_round()
172 tmp->n_sign = (*result)->n_sign; in bc_round()
182 (*result)->n_sign = PLUS; in bc_round()
H A Dfloor_or_ceil.c25 result->n_sign = num->n_sign; in bc_floor_or_ceil()
32 if (num->n_scale == 0 || result->n_sign == (is_floor ? PLUS : MINUS)) { in bc_floor_or_ceil()
51 tmp->n_sign = result->n_sign; in bc_floor_or_ceil()
57 result->n_sign = PLUS; in bc_floor_or_ceil()
H A Ddiv.c352 (*quot)->n_sign = numerator->n_sign == divisor->n_sign ? PLUS : MINUS; in bc_divide()
471 (*quot)->n_sign = numerator->n_sign == divisor->n_sign ? PLUS : MINUS; in bc_divide()
488 (*quot)->n_sign = PLUS; in bc_divide()
490 (*quot)->n_sign = numerator->n_sign == divisor->n_sign ? PLUS : MINUS; in bc_divide()
H A Dlong2num.c37 num->n_sign = MINUS; in bc_long2num()
56 num->n_sign = negative ? MINUS : PLUS; in bc_long2num()
H A Dneg.c38 return num->n_sign == MINUS; in bc_is_neg()
H A Drecmul.c261 prod->n_sign = (n1->n_sign == n2->n_sign ? PLUS : MINUS); in bc_multiply()
266 prod->n_sign = PLUS; in bc_multiply()
285 prod->n_sign = PLUS; in bc_square()
H A Dnum2long.c60 if (num->n_sign == PLUS) { in bc_num2long()
H A Dint2num.c66 (*num)->n_sign = MINUS; in bc_int2num()
H A Dnum2str.c46 signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, min_scale); in bc_num2str_ex()
H A Ddivmod.c76 (*rem)->n_sign = PLUS; in bc_divmod()
H A Dinit.c54 temp->n_sign = PLUS; in _bc_new_num_nonzeroed_ex_internal()
H A Dstr2num.c195 (*num)->n_sign = *str == '-' ? MINUS : PLUS; in bc_str2num()
H A Dbcmath.h46 sign n_sign; member

Completed in 15 milliseconds