Lines Matching refs:n2
55 static inline void bc_fast_mul(bc_num n1, size_t n1len, bc_num n2, size_t n2len, bc_num *prod) in bc_fast_mul() argument
58 const char *n2end = n2->n_value + n2len - 1; in bc_fast_mul()
141 static void bc_standard_mul(bc_num n1, size_t n1len, bc_num n2, size_t n2len, bc_num *prod) in bc_standard_mul() argument
145 const char *n2end = n2->n_value + n2len - 1; in bc_standard_mul()
243 bc_num bc_multiply(bc_num n1, bc_num n2, size_t scale) in bc_multiply() argument
249 size_t len2 = n2->n_len + n2->n_scale; in bc_multiply()
250 size_t full_scale = n1->n_scale + n2->n_scale; in bc_multiply()
251 size_t prod_scale = MIN(full_scale, MAX(scale, MAX(n1->n_scale, n2->n_scale))); in bc_multiply()
255 bc_fast_mul(n1, len1, n2, len2, &prod); in bc_multiply()
257 bc_standard_mul(n1, len1, n2, len2, &prod); in bc_multiply()
261 prod->n_sign = (n1->n_sign == n2->n_sign ? PLUS : MINUS); in bc_multiply()