Searched refs:required_capacity (Results 1 – 6 of 6) sorted by relevance
83 int required_capacity; in PyNode_AddChild() local90 required_capacity = XXXROUNDUP(nch + 1); in PyNode_AddChild()91 if (current_capacity < 0 || required_capacity < 0) in PyNode_AddChild()93 if (current_capacity < required_capacity) { in PyNode_AddChild()94 if (required_capacity > PY_SIZE_MAX / sizeof(node)) { in PyNode_AddChild()99 required_capacity * sizeof(node)); in PyNode_AddChild()
101 int required_capacity; in PyNode_AddChild() local113 required_capacity = XXXROUNDUP(nch + 1); in PyNode_AddChild()114 if (current_capacity < 0 || required_capacity < 0) in PyNode_AddChild()116 if (current_capacity < required_capacity) { in PyNode_AddChild()117 if ((size_t)required_capacity > SIZE_MAX / sizeof(node)) { in PyNode_AddChild()122 required_capacity * sizeof(node)); in PyNode_AddChild()
286 const int required_capacity =293 RUY_DCHECK_GT(required_capacity, user_capacity);296 allocator->Allocate<AccumScalar>(required_capacity);300 (required_capacity - user_size) * sizeof(AccumScalar));305 allocator->Allocate<AccumScalar>(required_capacity);309 (required_capacity - user_size) * sizeof(AccumScalar));313 int* new_data = allocator->Allocate<int>(required_capacity);317 (required_capacity - user_size) * sizeof(int));330 const int required_capacity =337 RUY_DCHECK_GT(required_capacity, user_capacity);[all …]
614 size_t required_capacity = *buffer_capacity; in GetReadBuffer() local615 if (!required_capacity) in GetReadBuffer()616 required_capacity = kReadBufferSize; in GetReadBuffer()618 *buffer_capacity = required_capacity; in GetReadBuffer()619 return read_buffer_->Reserve(required_capacity); in GetReadBuffer()
104 size_t required_capacity = 0; in RtpFragmentize() local112 std::numeric_limits<size_t>::max() - required_capacity); in RtpFragmentize()113 required_capacity += layerInfo.pNalLengthInByte[nal]; in RtpFragmentize()117 encoded_image->SetEncodedData(EncodedImageBuffer::Create(required_capacity)); in RtpFragmentize()
1486 const size_t required_capacity = tensors_.size() + kTensorsCapacityHeadroom; in EnsureTensorsVectorCapacity() local1487 if (required_capacity > tensors_.capacity()) { in EnsureTensorsVectorCapacity()1493 std::max(required_capacity, tensors_.capacity() * 2); in EnsureTensorsVectorCapacity()