Lines Matching refs:result
21 void bc_round(bc_num num, zend_long precision, zend_long mode, bc_num *result) in bc_round() argument
24 bc_free_num(result); in bc_round()
45 *result = bc_copy_num(BCG(_zero_)); in bc_round()
50 *result = bc_copy_num(BCG(_zero_)); in bc_round()
57 *result = bc_copy_num(BCG(_zero_)); in bc_round()
69 *result = bc_copy_num(BCG(_zero_)); in bc_round()
75 *result = bc_new_num((size_t) ZEND_LONG_MAX + 2, 0); in bc_round()
77 *result = bc_new_num(-precision + 1, 0); in bc_round()
79 (*result)->n_value[0] = 1; in bc_round()
80 (*result)->n_sign = num->n_sign; in bc_round()
87 *result = bc_copy_num(num); in bc_round()
89 *result = bc_new_num(num->n_len, precision); in bc_round()
90 (*result)->n_sign = num->n_sign; in bc_round()
91 memcpy((*result)->n_value, num->n_value, num->n_len + num->n_scale); in bc_round()
108 *result = bc_new_num(1, 0); in bc_round()
110 *result = bc_new_num(num->n_len, precision > 0 ? precision : 0); in bc_round()
111 memcpy((*result)->n_value, num->n_value, rounded_len); in bc_round()
113 (*result)->n_sign = num->n_sign; in bc_round()
212 bc_num scaled_one = bc_new_num((*result)->n_len, (*result)->n_scale); in bc_round()
215 tmp = _bc_do_add(*result, scaled_one); in bc_round()
216 tmp->n_sign = (*result)->n_sign; in bc_round()
220 bc_free_num(result); in bc_round()
221 *result = tmp; in bc_round()
225 if (bc_is_zero(*result)) { in bc_round()
226 (*result)->n_sign = PLUS; in bc_round()