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()
37 *result = bc_copy_num(BCG(_zero_)); in bc_round()
43 *result = bc_copy_num(num); in bc_round()
45 *result = bc_new_num(num->n_len, precision); in bc_round()
46 (*result)->n_sign = num->n_sign; in bc_round()
47 memcpy((*result)->n_value, num->n_value, num->n_len + num->n_scale); in bc_round()
64 *result = bc_copy_num(BCG(_zero_)); in bc_round()
66 *result = bc_new_num(num->n_len, precision > 0 ? precision : 0); in bc_round()
67 memcpy((*result)->n_value, num->n_value, rounded_len); in bc_round()
69 (*result)->n_sign = num->n_sign; in bc_round()
168 bc_num scaled_one = bc_new_num((*result)->n_len, (*result)->n_scale); in bc_round()
171 tmp = _bc_do_add(*result, scaled_one); in bc_round()
172 tmp->n_sign = (*result)->n_sign; in bc_round()
176 bc_free_num(result); in bc_round()
177 *result = tmp; in bc_round()
181 if (bc_is_zero(*result)) { in bc_round()
182 (*result)->n_sign = PLUS; in bc_round()