Lines Matching full:cap
48 size_t cap, len;
53 cap = v->cap;
57 if (len > SIZE_MAX / 2) cap = len;
61 while (cap < len)
63 cap += cap;
69 v->v = bc_vm_realloc(v->v, bc_vm_arraySize(cap, v->size));
70 v->cap = cap;
85 v->cap = BC_VEC_START_CAP;
96 if (v->cap < req)
105 v->cap = req;
189 if (v->len + n > v->cap) bc_vec_grow(v, n);
220 if (v->len + 1 > v->cap) bc_vec_grow(v, 1);
274 if (v->len == v->cap) bc_vec_grow(v, 1);