Home
last modified time | relevance | path

Searched refs:required_capacity (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython2/Parser/
Dnode.c83 int required_capacity; in PyNode_AddChild() local
90 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()
/external/python/cpython3/Parser/
Dnode.c101 int required_capacity; in PyNode_AddChild() local
113 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()
/external/ruy/ruy/
Dcreate_trmul_params.h286 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 …]
/external/libchrome/mojo/core/
Dchannel.cc614 size_t required_capacity = *buffer_capacity; in GetReadBuffer() local
615 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()
/external/webrtc/modules/video_coding/codecs/h264/
Dh264_encoder_impl.cc104 size_t required_capacity = 0; in RtpFragmentize() local
112 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()
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.cc1486 const size_t required_capacity = tensors_.size() + kTensorsCapacityHeadroom; in EnsureTensorsVectorCapacity() local
1487 if (required_capacity > tensors_.capacity()) { in EnsureTensorsVectorCapacity()
1493 std::max(required_capacity, tensors_.capacity() * 2); in EnsureTensorsVectorCapacity()