Searched defs:alloc_size (Results 1 - 25 of 38) sorted by relevance

12

/external/chromium_org/base/process/
H A Dmemory.cc13 const size_t alloc_size = num_items * size; local
16 if (size && ((alloc_size / size) != num_items)) {
21 if (!UncheckedMalloc(alloc_size, result))
24 memset(*result, 0, alloc_size);
/external/oprofile/libutil/
H A Dop_libiberty.c30 void * xmemdup (void const * input, size_t copy_size, size_t alloc_size) argument
32 void * output = xcalloc(1, alloc_size);
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dheap-profile-stats.h32 alloc_size - free_size == other.alloc_size - other.free_size;
37 int64 alloc_size; // Total size of all allocated objects so far. member in struct:HeapProfileStats
/external/chromium_org/chromecast/media/cma/ipc/
H A Dmedia_message_unittest.cc35 void* data, size_t size, size_t alloc_size) {
36 CHECK_LE(alloc_size, size);
38 new ExternalMemoryBlock(data, alloc_size));
34 DummyAllocator( void* data, size_t size, size_t alloc_size) argument
/external/chromium_org/third_party/boringssl/src/crypto/buf/
H A Dbuf.c91 size_t n, alloc_size; local
110 alloc_size = n * 4;
111 if (alloc_size / 4 != n) {
118 new_buf = OPENSSL_malloc(alloc_size);
121 new_buf = OPENSSL_realloc_clean(buf->data, buf->max, alloc_size);
123 new_buf = OPENSSL_realloc(buf->data, alloc_size);
132 buf->max = alloc_size;
170 size_t alloc_size; local
178 alloc_size = size + 1;
179 if (alloc_size < siz
[all...]
/external/chromium_org/third_party/libvpx/source/libvpx/vpx/src/
H A Dvpx_image.c143 const uint64_t alloc_size = (fmt & VPX_IMG_FMT_PLANAR) ? local
146 if (alloc_size != (size_t)alloc_size)
149 img->img_data = (uint8_t *)vpx_memalign(buf_align, (size_t)alloc_size);
/external/jemalloc/src/
H A Dchunk_mmap.c106 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size) argument
110 assert(alloc_size >= leadsize + size);
115 pages_unmap(addr, alloc_size);
125 size_t trailsize = alloc_size - leadsize - size;
169 size_t alloc_size, leadsize; local
171 alloc_size = size + alignment - PAGE;
173 if (alloc_size < size)
176 pages = pages_map(NULL, alloc_size);
181 ret = pages_trim(pages, alloc_size, leadsize, size);
H A Dchunk.c50 size_t alloc_size, leadsize, trailsize; local
63 alloc_size = size + alignment - chunksize;
65 if (alloc_size < size)
68 key.size = alloc_size;
/external/chromium_org/chrome/installer/mini_installer/
H A Dmini_string.cc43 size_t SafeStrLen(const wchar_t* str, size_t alloc_size) { argument
44 if (!str || !alloc_size)
47 while (--alloc_size && str[len] != L'\0')
/external/chromium_org/content/browser/loader/
H A Dresource_buffer.cc94 int alloc_size; local
100 alloc_size = buf_size_;
111 alloc_size = buf_size_ - alloc_end_;
116 alloc_size = alloc_start_;
123 alloc_size = alloc_start_ - alloc_end_;
127 // Make sure alloc_size does not exceed max_alloc_size_. We store the
128 // current value of alloc_size, so that we can use ShrinkLastAllocation to
131 alloc_sizes_.push(alloc_size);
133 if (alloc_size > max_alloc_size_) {
134 alloc_size
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/lhash/
H A Dlhash.c165 size_t i, alloc_size; local
167 alloc_size = sizeof(LHASH_ITEM *) * new_num_buckets;
168 if (alloc_size / sizeof(LHASH_ITEM*) != new_num_buckets) {
172 new_buckets = OPENSSL_malloc(alloc_size);
176 memset(new_buckets, 0, alloc_size);
/external/chromium_org/third_party/boringssl/src/crypto/stack/
H A Dstack.c156 size_t alloc_size = new_alloc * sizeof(void *); local
160 if (new_alloc < sk->num_alloc || alloc_size / sizeof(void *) != new_alloc) {
162 alloc_size = new_alloc * sizeof(void *);
166 if (new_alloc < sk->num_alloc || alloc_size / sizeof(void *) != new_alloc) {
170 data = OPENSSL_realloc(sk->data, alloc_size);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_upload_mgr.c163 unsigned alloc_size = align( size, upload->alignment ); local
176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) {
178 alloc_offset + alloc_size);
209 upload->offset = offset + alloc_size;
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_upload_mgr.c163 unsigned alloc_size = align( size, upload->alignment ); local
176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) {
178 alloc_offset + alloc_size);
209 upload->offset = offset + alloc_size;
/external/chromium_org/tools/android/heap_profiler/
H A Dheap_dump.c146 size_t alloc_size = alloc.end - alloc.start + 1; local
150 dbg_counted_total_alloc_bytes += alloc_size;
157 alloc.start, alloc_size, alloc.flags, stack_idx);
/external/libnl/lib/netfilter/
H A Dlog_obj.c51 nl_dump(p, "alloc_size=%u ", log->log_alloc_size);
168 void nfnl_log_set_alloc_size(struct nfnl_log *log, uint32_t alloc_size) argument
170 log->log_alloc_size = alloc_size;
262 __ADD(LOG_ATTR_ALLOC_SIZE, alloc_size)
/external/pdfium/core/src/fxcrt/
H A Dfx_basic_memmgr.cpp299 size_t alloc_size = size > m_TrunkSize ? size : m_TrunkSize; local
300 pTrunk = (_FX_GrowOnlyTrunk*)m_pAllocator->m_Alloc(m_pAllocator, sizeof(_FX_GrowOnlyTrunk) + alloc_size);
301 pTrunk->m_Size = alloc_size;
H A Dfx_basic_memmgr_mini.cpp156 FX_BOOL CFixedMgr_Proxy::Common_More(FXMEM_SystemMgr2* pMgr, size_t alloc_size, void** new_memory, size_t* new_size) argument
160 *new_size = alloc_size;
161 *new_memory = pProxyMgr->m_pFixedPage->Alloc(alloc_size);
163 *new_memory = malloc(alloc_size);
/external/chromium_org/third_party/libusb/src/libusb/
H A Dio.c1322 size_t alloc_size = sizeof(struct usbi_transfer) local
1326 struct usbi_transfer *itransfer = calloc(1, alloc_size);
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dheap-profile-table.h64 int64 alloc_size; // Total size of all allocated objects so far member in struct:HeapProfileTable::Stats
70 alloc_size - free_size == x.alloc_size - x.free_size;
388 return (total_.allocs == 0) && (total_.alloc_size == 0);
410 total_.alloc_size += v.bytes;
/external/fio/
H A Dsmalloc.c180 static int add_pool(struct pool *pool, unsigned int alloc_size) argument
186 alloc_size += sizeof(unsigned int);
188 alloc_size += sizeof(struct block_hdr);
189 if (alloc_size < INITIAL_SIZE)
190 alloc_size = INITIAL_SIZE;
193 alloc_size = (alloc_size + SMALLOC_BPL - 1) & ~(SMALLOC_BPL - 1);
194 bitmap_blocks = alloc_size / SMALLOC_BPL;
195 alloc_size += bitmap_blocks * sizeof(unsigned int);
196 pool->mmap_size = alloc_size;
409 size_t alloc_size = size + sizeof(struct block_hdr); local
[all...]
/external/libusb/libusb/
H A Dio.c1163 int alloc_size = sizeof(struct usbi_transfer) local
1167 struct usbi_transfer *itransfer = malloc(alloc_size);
1171 memset(itransfer, 0, alloc_size);
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dsampler_test.cc377 int alloc_size, int sampling_interval) {
378 double p = 1 - exp(-(static_cast<double>(alloc_size) / sampling_interval));
375 StandardDeviationsErrorInSample( int total_samples, int picked_samples, int alloc_size, int sampling_interval) argument
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dsampler_test.cc377 int alloc_size, int sampling_interval) {
378 double p = 1 - exp(-(static_cast<double>(alloc_size) / sampling_interval));
375 StandardDeviationsErrorInSample( int total_samples, int picked_samples, int alloc_size, int sampling_interval) argument
/external/nanopb-c/
H A Dpb_decode.c1128 size_t alloc_size; local
1134 alloc_size = size + 1;
1141 if (!allocate_field(stream, dest, alloc_size, 1))
1148 if (alloc_size > field->data_size)

Completed in 1435 milliseconds

12