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.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 ((size_t)required_capacity > SIZE_MAX / sizeof(node)) { in PyNode_AddChild()
99 required_capacity * sizeof(node)); in PyNode_AddChild()
/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/tensorflow/tensorflow/lite/core/
Dsubgraph.h441 const size_t required_capacity = tensors_.size() + kTensorsCapacityHeadroom; in EnsureTensorsVectorCapacity() local
442 if (required_capacity > tensors_.capacity()) { in EnsureTensorsVectorCapacity()
443 tensors_.reserve(required_capacity); in EnsureTensorsVectorCapacity()
/external/v8/src/
Dvalue-serializer.h103 Maybe<bool> ExpandBuffer(size_t required_capacity);
Dvalue-serializer.cc297 Maybe<bool> ValueSerializer::ExpandBuffer(size_t required_capacity) { in ExpandBuffer() argument
298 DCHECK_GT(required_capacity, buffer_capacity_); in ExpandBuffer()
300 std::max(required_capacity, buffer_capacity_ * 2) + 64; in ExpandBuffer()