Home
last modified time | relevance | path

Searched refs:allocated_size (Results 1 – 25 of 35) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Drepeated_field.cc72 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
74 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
75 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
77 rep_->allocated_size = 0; in InternalExtend()
100 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
103 rep_->allocated_size -= num; in CloseGap()
107 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
110 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
113 ++rep_->allocated_size; in AddWeak()
Drepeated_field.h611 int allocated_size;
1501 int n = rep_->allocated_size;
1585 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
1588 if (!rep_ || rep_->allocated_size == total_size_) {
1591 ++rep_->allocated_size;
1601 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
1605 if (!rep_ || rep_->allocated_size == total_size_) {
1608 ++rep_->allocated_size;
1655 int allocated_elems = rep_->allocated_size - current_size_;
1659 if (rep_->allocated_size < current_size_) {
[all …]
/external/webp/src/utils/
Dbit_writer_utils.c208 size_t allocated_size; in VP8LBitWriterResize() local
218 allocated_size = (3 * max_bytes) >> 1; in VP8LBitWriterResize()
219 if (allocated_size < size_required) allocated_size = size_required; in VP8LBitWriterResize()
221 allocated_size = (((allocated_size >> 10) + 1) << 10); in VP8LBitWriterResize()
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
233 bw->end_ = bw->buf_ + allocated_size; in VP8LBitWriterResize()
/external/pcre/src/sljit/
DsljitExecAllocator.c241 static sljit_uw allocated_size; variable
299 allocated_size += size; in sljit_malloc_exec()
320 allocated_size += size; in sljit_malloc_exec()
331 allocated_size += chunk_size; in sljit_malloc_exec()
348 allocated_size -= header->size; in sljit_free_exec()
377 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
DsljitProtExecAllocator.c287 static sljit_uw allocated_size; variable
347 allocated_size += size; in sljit_malloc_exec()
375 allocated_size += size; in sljit_malloc_exec()
387 allocated_size += chunk_size; in sljit_malloc_exec()
406 allocated_size -= header->size; in sljit_free_exec()
434 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
/external/curl/lib/
Dsendf.c141 return psnd->buffer && psnd->allocated_size && in Curl_recv_has_postponed_data()
150 size_t bytestorecv = psnd->allocated_size - psnd->recv_size; in pre_receive_plain()
165 psnd->allocated_size = 2 * data->set.buffer_size; in pre_receive_plain()
166 psnd->buffer = malloc(psnd->allocated_size); in pre_receive_plain()
174 bytestorecv = psnd->allocated_size; in pre_receive_plain()
185 psnd->allocated_size = 0; in pre_receive_plain()
199 DEBUGASSERT(psnd->allocated_size > 0); in get_pre_recved()
200 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size); in get_pre_recved()
217 psnd->allocated_size = 0; in get_pre_recved()
Durl.c699 DEBUGASSERT(psnd->allocated_size > 0); in conn_reset_postponed_data()
700 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size); in conn_reset_postponed_data()
707 psnd->allocated_size = 0; in conn_reset_postponed_data()
715 DEBUGASSERT(psnd->allocated_size == 0); in conn_reset_postponed_data()
/external/libchrome/base/trace_event/
Dmalloc_dump_provider.cc36 size_t allocated_size; member
52 crt_heap_info->allocated_size += heap_entry.cbData; in WinHeapMemoryDumpImpl()
130 allocated_objects_size = main_heap_info.allocated_size; in OnMemoryDump()
/external/compiler-rt/lib/interception/
Dinterception_win.cc293 uptr allocated_size; member
356 current->allocated_size = 0; in AllocateMemoryForTrampoline()
360 } else if (current->max_size - current->allocated_size > size) { in AllocateMemoryForTrampoline()
363 uptr next_address = current->content + current->allocated_size; in AllocateMemoryForTrampoline()
379 uptr allocated_space = region->content + region->allocated_size; in AllocateMemoryForTrampoline()
380 region->allocated_size += size; in AllocateMemoryForTrampoline()
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/
Dfake_transport_security.cc48 size_t allocated_size; member
155 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
157 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_ensure_size()
158 } else if (frame->size > frame->allocated_size) { in tsi_fake_frame_ensure_size()
162 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
178 frame->allocated_size = TSI_FAKE_FRAME_INITIAL_ALLOCATED_SIZE; in tsi_fake_frame_decode()
180 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_decode()
/external/grpc-grpc/src/core/tsi/
Dfake_transport_security.cc48 size_t allocated_size; member
159 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
161 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_ensure_size()
162 } else if (frame->size > frame->allocated_size) { in tsi_fake_frame_ensure_size()
166 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
182 frame->allocated_size = TSI_FAKE_FRAME_INITIAL_ALLOCATED_SIZE; in tsi_fake_frame_decode()
184 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_decode()
/external/clang/lib/Sema/
DAttributeList.cpp34 size_t AttributeList::allocated_size() const { in allocated_size() function in AttributeList
76 size_t size = cur->allocated_size(); in reclaimPool()
/external/tensorflow/tensorflow/core/framework/
Dtracking_allocator.cc92 allocated_bytes = (*itr).second.allocated_size; in DeallocateRaw()
134 return (*it).second.allocated_size; in AllocatedSize()
Dtracking_allocator.h123 size_t allocated_size; member
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_bfc_allocator_test.cc473 size_t allocated_size = initial_ptrs_allocated_sizes[2 * i] + in TestBinDebugInfo() local
475 EXPECT_EQ(bin_info.total_bytes_in_use, allocated_size); in TestBinDebugInfo()
476 EXPECT_EQ(bin_summary.total_bytes_in_use(), allocated_size); in TestBinDebugInfo()
477 EXPECT_EQ(bin_info.total_bytes_in_bin, allocated_size); in TestBinDebugInfo()
478 EXPECT_EQ(bin_summary.total_bytes_in_bin(), allocated_size); in TestBinDebugInfo()
/external/pdfium/third_party/libtiff/
Dtif_close.c97 if (tif->tif_fieldscompat[i].allocated_size) in TIFFCleanup()
Dtif_dir.h277 …uint32 allocated_size; /* 0 if array is constant, other if modified by future definition exte… member
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_malloc_mac.inc38 uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
39 COMMON_MALLOC_MEMALIGN(page_size, allocated_size);
47 mprotect(new_zone, allocated_size, PROT_READ);
/external/nanopb-c/
Dpb_decode.c604 size_t allocated_size = *size; in decode_pointer_field()
622 if ((size_t)*size + 1 > allocated_size) in decode_pointer_field()
628 if (remain < PB_SIZE_MAX - allocated_size) in decode_pointer_field()
629 allocated_size += remain; in decode_pointer_field()
631 allocated_size += 1; in decode_pointer_field()
633 … if (!allocate_field(&substream, iter->pData, iter->pos->data_size, allocated_size)) in decode_pointer_field()
/external/compiler-rt/lib/asan/
Dasan_allocator.cc384 uptr allocated_size = allocator.GetActuallyAllocatedSize(allocated); in Allocate() local
385 PoisonShadow((uptr)allocated, allocated_size, kAsanHeapLeftRedzoneMagic); in Allocate()
902 uptr allocated_size = instance.AllocationSize(ptr); in __sanitizer_get_allocated_size() local
904 if (allocated_size == 0) { in __sanitizer_get_allocated_size()
908 return allocated_size; in __sanitizer_get_allocated_size()
/external/deqp/external/openglcts/modules/gl/
Dgl4cDirectStateAccessXFBTests.cpp675 glw::GLint allocated_size = -1; in prepareObjects() local
677 gl.getBufferParameteriv(GL_TRANSFORM_FEEDBACK_BUFFER, GL_BUFFER_SIZE, &allocated_size); in prepareObjects()
680 if (allocated_size != (glw::GLint)s_bo_size) in prepareObjects()
696 allocated_size = -1; in prepareObjects()
698 gl.getBufferParameteriv(GL_TRANSFORM_FEEDBACK_BUFFER, GL_BUFFER_SIZE, &allocated_size); in prepareObjects()
701 if (allocated_size != (glw::GLint)s_bo_size) in prepareObjects()
/external/libcxx/test/support/
Dcontrolled_allocators.hpp69 std::size_t allocated_size; member
103 allocated_size += s; in countAlloc()
/external/grpc-grpc/third_party/nanopb/
Dpb_decode.c528 size_t allocated_size = *size; in decode_pointer_field()
537 if ((size_t)*size + 1 > allocated_size) in decode_pointer_field()
542 allocated_size += (substream.bytes_left - 1) / iter->pos->data_size + 1; in decode_pointer_field()
544 … if (!allocate_field(&substream, iter->pData, iter->pos->data_size, allocated_size)) in decode_pointer_field()
/external/libchrome/base/metrics/
Dfield_trial.cc1097 size_t allocated_size = in GetParamsFromSharedMemory() local
1100 if (allocated_size < actual_size) in GetParamsFromSharedMemory()
/external/clang/include/clang/Sema/
DAttributeList.h234 size_t allocated_size() const;

12