Searched refs:n_sign (Results 1 – 16 of 16) sorted by relevance
46 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()
46 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()
47 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()
46 (*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()
25 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()
352 (*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()
37 num->n_sign = MINUS; in bc_long2num()56 num->n_sign = negative ? MINUS : PLUS; in bc_long2num()
38 return num->n_sign == MINUS; in bc_is_neg()
261 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()
60 if (num->n_sign == PLUS) { in bc_num2long()
66 (*num)->n_sign = MINUS; in bc_int2num()
46 signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, min_scale); in bc_num2str_ex()
76 (*rem)->n_sign = PLUS; in bc_divmod()
54 temp->n_sign = PLUS; in _bc_new_num_nonzeroed_ex_internal()
195 (*num)->n_sign = *str == '-' ? MINUS : PLUS; in bc_str2num()
46 sign n_sign; member
Completed in 15 milliseconds