Lines Matching refs:req
1116 static void bc_vec_expand(BcVec *v, size_t req) in bc_vec_expand() argument
1118 if (v->cap < req) { in bc_vec_expand()
1119 v->v = xrealloc(v->v, v->size * req); in bc_vec_expand()
1120 v->cap = req; in bc_vec_expand()
1348 static void bc_num_init(BcNum *n, size_t req) in bc_num_init() argument
1350 req = req >= BC_NUM_DEF_SIZE ? req : BC_NUM_DEF_SIZE; in bc_num_init()
1352 n->num = xmalloc(req); in bc_num_init()
1353 n->cap = req; in bc_num_init()
1364 static void bc_num_expand(BcNum *n, size_t req) in bc_num_expand() argument
1366 req = req >= BC_NUM_DEF_SIZE ? req : BC_NUM_DEF_SIZE; in bc_num_expand()
1367 if (req > n->cap) { in bc_num_expand()
1368 n->num = xrealloc(n->num, req); in bc_num_expand()
1369 n->cap = req; in bc_num_expand()
1639 BcNumBinaryOp op, size_t req) in zbc_num_binary() argument
1662 bc_num_init(c, req); in zbc_num_binary()
1664 bc_num_expand(c, req); in zbc_num_binary()
1698 size_t req = BC_NUM_MREQ(a, b, scale); in zbc_num_mul() local
1699 RETURN_STATUS(zbc_num_binary(a, b, c, scale, zbc_num_m, req)); in zbc_num_mul()
1704 size_t req = BC_NUM_MREQ(a, b, scale); in zbc_num_div() local
1705 RETURN_STATUS(zbc_num_binary(a, b, c, scale, zbc_num_d, req)); in zbc_num_div()
1710 size_t req = BC_NUM_MREQ(a, b, scale); in zbc_num_mod() local
1711 RETURN_STATUS(zbc_num_binary(a, b, c, scale, zbc_num_rem, req)); in zbc_num_mod()
2269 size_t pow, len, digs, digs1, resrdx, req, times; in zbc_num_sqrt() local
2272 req = BC_MAX(scale, a->rdx) + ((BC_NUM_INT(a) + 1) >> 1) + 1; in zbc_num_sqrt()
2273 bc_num_expand(b, req); in zbc_num_sqrt()