Home
last modified time | relevance | path

Searched refs:min_scale (Results 1 – 2 of 2) sorted by relevance

/php-src/ext/bcmath/libbcmath/src/
H A Ddoaddsub.c47 size_t min_scale = MIN(n1->n_scale, n2->n_scale); in _bc_do_add() local
48 size_t min_bytes = min_len + min_scale; in _bc_do_add()
62 if (n1->n_scale != min_scale) { in _bc_do_add()
64 for (count = n1->n_scale - min_scale; count > 0; count--) { in _bc_do_add()
69 for (count = n2->n_scale - min_scale; count > 0; count--) { in _bc_do_add()
180 size_t min_scale = MIN(n1->n_scale, n2->n_scale); in _bc_do_sub() local
181 size_t min_bytes = min_len + min_scale; in _bc_do_sub()
196 if (n1->n_scale != min_scale) { in _bc_do_sub()
198 for (count = n1->n_scale - min_scale; count > 0; count--) { in _bc_do_sub()
203 for (count = n2->n_scale - min_scale; count > 0; count--) { in _bc_do_sub()
H A Dnum2str.c43 size_t min_scale = MIN(num->n_scale, scale); in bc_num2str_ex() local
46 signch = num->n_sign != PLUS && !bc_is_zero_for_scale(num, min_scale); in bc_num2str_ex()
66 sptr = bc_copy_and_toggle_bcd(sptr, nptr, nptr + min_scale); in bc_num2str_ex()

Completed in 7 milliseconds