Searched refs:new_capacity (Results 1 – 4 of 4) sorted by relevance
34 uint32_t new_capacity = str->capacity * 2; in ensure_capacity() local35 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()
185 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block() local190 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() local271 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()
159 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block() local164 sizeof(struct address_block) * new_capacity); in address_space_allocator_split_block()166 allocator->capacity = new_capacity; in address_space_allocator_split_block()
4408 size_t new_capacity = p->m_capacity; in tdefl_output_buffer_putter() local4412 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() local4812 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 …]