Searched refs:full_scale (Results 1 – 4 of 4) sorted by relevance
/php-src/ext/bcmath/libbcmath/src/ |
H A D | str2num.c | 109 bool bc_str2num(bc_num *num, const char *str, const char *end, size_t scale, size_t *full_scale, bo… in bc_str2num() argument 146 if (full_scale) { in bc_str2num() 147 *full_scale = 0; in bc_str2num() 159 if (full_scale) { in bc_str2num() 160 *full_scale = fractional_end - fractional_ptr; in bc_str2num() 178 if (full_scale) { in bc_str2num() 179 *full_scale = 0; in bc_str2num()
|
H A D | recmul.c | 250 size_t full_scale = n1->n_scale + n2->n_scale; in bc_multiply() local 251 size_t prod_scale = MIN(full_scale, MAX(scale, MAX(n1->n_scale, n2->n_scale))); in bc_multiply() 262 prod->n_len -= full_scale; in bc_multiply() 276 size_t full_scale = n1->n_scale + n1->n_scale; in bc_square() local 277 size_t prod_scale = MIN(full_scale, MAX(scale, n1->n_scale)); in bc_square() 286 prod->n_len -= full_scale; in bc_square()
|
H A D | bcmath.h | 96 bool bc_str2num(bc_num *num, const char *str, const char *end, size_t scale, size_t *full_scale, bo…
|
/php-src/ext/bcmath/ |
H A D | bcmath.c | 165 static zend_result php_str2num_ex(bc_num *num, const zend_string *str, size_t *full_scale) in php_str2num_ex() argument 167 if (!bc_str2num(num, ZSTR_VAL(str), ZSTR_VAL(str) + ZSTR_LEN(str), 0, full_scale, true)) { in php_str2num_ex() 1192 if (full_scale) { in bc_num_from_obj_or_str_or_long() 1193 *full_scale = intern->scale; in bc_num_from_obj_or_str_or_long() 1197 return php_str2num_ex(num, str, full_scale); in bc_num_from_obj_or_str_or_long() 1200 if (full_scale) { in bc_num_from_obj_or_str_or_long() 1201 *full_scale = 0; in bc_num_from_obj_or_str_or_long() 1371 size_t full_scale = 0; in bc_num_from_obj_or_str_or_long_with_err() local 1372 if (UNEXPECTED(bc_num_from_obj_or_str_or_long(num, &full_scale, obj, str, lval) == FAILURE)) { in bc_num_from_obj_or_str_or_long_with_err() 1376 if (UNEXPECTED(CHECK_SCALE_OVERFLOW(full_scale))) { in bc_num_from_obj_or_str_or_long_with_err() [all …]
|
Completed in 14 milliseconds