| /xsrc/external/mit/MesaLib.old/dist/src/util/ |
| H A D | string_buffer.c | 34 uint32_t new_capacity = str->capacity * 2; local in function:ensure_capacity 35 while (needed_capacity > new_capacity) 36 new_capacity *= 2; 38 str->buf = reralloc_array_size(str, str->buf, sizeof(char), new_capacity); 42 str->capacity = new_capacity;
|
| /xsrc/external/mit/MesaLib/dist/src/util/ |
| H A D | string_buffer.c | 34 uint32_t new_capacity = str->capacity * 2; local in function:ensure_capacity 35 while (needed_capacity > new_capacity) 36 new_capacity *= 2; 38 str->buf = reralloc_array_size(str, str->buf, sizeof(char), new_capacity); 42 str->capacity = new_capacity;
|
| /xsrc/external/mit/MesaLib.old/dist/src/freedreno/vulkan/ |
| H A D | tu_cs.c | 123 uint32_t new_capacity = MAX2(4, 2 * cs->bo_capacity); local in function:tu_cs_add_bo 125 realloc(cs->bos, new_capacity * sizeof(struct tu_bo *)); 129 cs->bo_capacity = new_capacity; 169 uint32_t new_capacity = MAX2(4, cs->entry_capacity * 2); local in function:tu_cs_reserve_entry 171 realloc(cs->entries, new_capacity * sizeof(struct tu_cs_entry)); 175 cs->entry_capacity = new_capacity;
|
| H A D | tu_cmd_buffer.c | 74 uint32_t new_capacity = MAX2(2 * list->count, 16); local in function:tu_bo_list_add_info 76 list->bo_infos, new_capacity * sizeof(struct drm_msm_gem_submit_bo)); 80 list->capacity = new_capacity;
|
| /xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/ |
| H A D | tu_cs.c | 100 uint32_t new_capacity = MAX2(4, 2 * cs->bo_capacity); local in function:tu_cs_add_bo 102 realloc(cs->bos, new_capacity * sizeof(struct tu_bo *)); 106 cs->bo_capacity = new_capacity; 148 uint32_t new_capacity = MAX2(4, cs->entry_capacity * 2); local in function:tu_cs_reserve_entry 150 realloc(cs->entries, new_capacity * sizeof(struct tu_cs_entry)); 154 cs->entry_capacity = new_capacity;
|
| /xsrc/external/mit/MesaLib.old/dist/src/imgui/ |
| H A D | imgui.h | 1210 inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity/2) : 8; return new_capacity > sz ? new_capacity : sz; } local in function:ImVector::_grow_capacity 1213 inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)ImGui::MemAlloc((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); ImGui::MemFree(Data); } Data = new_data; Capacity = new_capacity; } argument
|
| H A D | imgui.cpp | 2137 int new_capacity = Buf.Capacity * 2; local in function:ImGuiTextBuffer::append 2138 Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); 2172 int new_capacity = Buf.Capacity * 2; local in function:ImGuiTextBuffer::appendfv 2173 Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity);
|
| /xsrc/external/mit/MesaLib/dist/src/imgui/ |
| H A D | imgui.h | 1210 inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity/2) : 8; return new_capacity > sz ? new_capacity : sz; } local in function:ImVector::_grow_capacity 1213 inline void reserve(int new_capacity) { if (new_capacity <= Capacity) return; T* new_data = (T*)ImGui::MemAlloc((size_t)new_capacity * sizeof(T)); if (Data) { memcpy(new_data, Data, (size_t)Size * sizeof(T)); ImGui::MemFree(Data); } Data = new_data; Capacity = new_capacity; } argument
|
| H A D | imgui.cpp | 2137 int new_capacity = Buf.Capacity * 2; local in function:ImGuiTextBuffer::append 2138 Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity); 2172 int new_capacity = Buf.Capacity * 2; local in function:ImGuiTextBuffer::appendfv 2173 Buf.reserve(needed_sz > new_capacity ? needed_sz : new_capacity);
|
| /xsrc/external/mit/MesaLib/dist/src/amd/vulkan/winsys/amdgpu/ |
| H A D | radv_amdgpu_cs.c | 1382 unsigned new_capacity = MAX2(count, ws->syncobj_capacity * 2); local in function:radv_amdgpu_cache_alloc_syncobjs 1383 uint32_t *n = realloc(ws->syncobj, new_capacity * sizeof(*ws->syncobj)); 1386 ws->syncobj_capacity = new_capacity; 1415 unsigned new_capacity = MAX2(ws->syncobj_count + cache_count, ws->syncobj_capacity * 2); local in function:radv_amdgpu_cache_free_syncobjs 1416 uint32_t *n = realloc(ws->syncobj, new_capacity * sizeof(*ws->syncobj)); 1418 ws->syncobj_capacity = new_capacity;
|