Home
last modified time | relevance | path

Searched refs:new_capacity (Results 1 – 4 of 4) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/
Dstring_buffer.c34 uint32_t new_capacity = str->capacity * 2; in ensure_capacity() local
35 while (needed_capacity > new_capacity) in ensure_capacity()
36 new_capacity *= 2; in ensure_capacity()
38 str->buf = reralloc_array_size(str, str->buf, sizeof(char), new_capacity); in ensure_capacity()
42 str->capacity = new_capacity; in ensure_capacity()
/hardware/google/aemu/base/include/aemu/base/
Daddress_space.h185 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block() local
190 sizeof(struct address_block) * new_capacity); in address_space_allocator_split_block()
192 allocator->capacity = new_capacity; in address_space_allocator_split_block()
266 …int new_capacity = address_space_allocator_grow_capacity(allocator->capacity + new_block_index_off… in address_space_allocator_split_block_at_offset() local
271 sizeof(struct address_block) * new_capacity); in address_space_allocator_split_block_at_offset()
273 allocator->capacity = new_capacity; in address_space_allocator_split_block_at_offset()
/hardware/google/gfxstream/guest/android-emu/aemu/base/
Daddress_space.h159 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block() local
164 sizeof(struct address_block) * new_capacity); in address_space_allocator_split_block()
166 allocator->capacity = new_capacity; in address_space_allocator_split_block()
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dtinyexr.h4408 size_t new_capacity = p->m_capacity; in tdefl_output_buffer_putter() local
4412 new_capacity = MZ_MAX(128U, new_capacity << 1U); in tdefl_output_buffer_putter()
4413 } while (new_size > new_capacity); in tdefl_output_buffer_putter()
4414 pNew_buf = (mz_uint8 *)MZ_REALLOC(p->m_pBuf, new_capacity); in tdefl_output_buffer_putter()
4417 p->m_capacity = new_capacity; in tdefl_output_buffer_putter()
4808 size_t new_capacity = min_new_capacity; in mz_zip_array_ensure_capacity() local
4812 new_capacity = MZ_MAX(1, pArray->m_capacity); in mz_zip_array_ensure_capacity()
4813 while (new_capacity < min_new_capacity) new_capacity *= 2; in mz_zip_array_ensure_capacity()
4816 pArray->m_element_size, new_capacity))) in mz_zip_array_ensure_capacity()
4819 pArray->m_capacity = new_capacity; in mz_zip_array_ensure_capacity()
[all …]