Lines Matching refs:new_capacity
36 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity);
311 void DRD_(vc_reserve)(VectorClock* const vc, const unsigned new_capacity) in DRD_()
318 if (new_capacity > vc->capacity) in DRD_()
326 vc->vc, new_capacity * sizeof(vc->vc[0])); in DRD_()
328 else if (vc->vc && new_capacity > VC_PREALLOCATED) in DRD_()
331 && new_capacity > VC_PREALLOCATED in DRD_()
334 new_capacity * sizeof(vc->vc[0])); in DRD_()
341 && new_capacity <= VC_PREALLOCATED in DRD_()
344 else if (new_capacity > VC_PREALLOCATED) in DRD_()
347 && new_capacity > VC_PREALLOCATED in DRD_()
350 new_capacity * sizeof(vc->vc[0])); in DRD_()
355 && new_capacity <= VC_PREALLOCATED in DRD_()
359 vc->capacity = new_capacity; in DRD_()
361 else if (new_capacity == 0 && vc->vc) in DRD_()
369 tl_assert(new_capacity == 0 || vc->vc != 0); in DRD_()