Searched refs:capacity (Results 1 - 25 of 35) sorted by relevance

12

/xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/
H A Dbrw_ir_allocator.h37 sizes(NULL), offsets(NULL), count(0), total_size(0), capacity(0)
51 if (capacity <= count) {
52 capacity = MAX2(16, capacity * 2);
53 sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned));
54 offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned));
84 unsigned capacity; member in class:brw::simple_allocator
/xsrc/external/mit/MesaLib/dist/src/intel/compiler/
H A Dbrw_ir_allocator.h37 sizes(NULL), offsets(NULL), count(0), total_size(0), capacity(0)
51 if (capacity <= count) {
52 capacity = MAX2(16, capacity * 2);
53 sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned));
54 offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned));
84 unsigned capacity; member in class:brw::simple_allocator
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Du_dynarray.h41 * Also, size <= capacity and data != 0 if and only if capacity != 0
42 * capacity will always be the allocation size of data
49 unsigned capacity; member in struct:util_dynarray
83 if (newcap > buf->capacity) {
84 if (buf->capacity == 0)
85 buf->capacity = DYN_ARRAY_INITIAL_SIZE;
87 while (newcap > buf->capacity)
88 buf->capacity *= 2;
91 buf->data = reralloc_size(buf->mem_ctx, buf->data, buf->capacity);
[all...]
H A Dstring_buffer.c30 if (needed_capacity <= str->capacity)
34 uint32_t new_capacity = str->capacity * 2;
42 str->capacity = new_capacity;
55 /* If no initial capacity is set then set it to something */
56 str->capacity = initial_capacity ? initial_capacity : 32;
57 str->buf = ralloc_array(str, char, str->capacity);
115 uint32_t space_left = str->capacity - str->length;
H A Dstring_buffer.h41 uint32_t capacity; member in struct:_mesa_string_buffer
84 str->capacity);
88 str->capacity = str->length + 1;
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dstring_buffer.c30 if (needed_capacity <= str->capacity)
34 uint32_t new_capacity = str->capacity * 2;
42 str->capacity = new_capacity;
55 /* If no initial capacity is set then set it to something */
56 str->capacity = initial_capacity ? initial_capacity : 32;
57 str->buf = ralloc_array(str, char, str->capacity);
115 uint32_t space_left = str->capacity - str->length;
H A Dstring_buffer.h41 uint32_t capacity; member in struct:_mesa_string_buffer
84 str->capacity);
88 str->capacity = str->length + 1;
H A Du_dynarray.h42 * Also, size <= capacity and data != 0 if and only if capacity != 0
43 * capacity will always be the allocation size of data
50 unsigned capacity; member in struct:util_dynarray
84 if (newcap > buf->capacity) {
85 unsigned capacity = MAX3(DYN_ARRAY_INITIAL_SIZE, buf->capacity * 2, newcap); local in function:util_dynarray_ensure_cap
89 data = reralloc_size(buf->mem_ctx, buf->data, capacity);
91 data = realloc(buf->data, capacity);
97 buf->capacity
[all...]
/xsrc/external/mit/fontconfig/dist/src/
H A Dfcserialize.c196 size_t capacity = serialize->buckets_count; local in function:FcSerializeSet
197 if (capacity == 0)
198 capacity = 4;
199 else if (capacity > SIZE_MAX / 2u)
202 capacity *= 2;
204 if (!FcSerializeResize (serialize, capacity))
207 serialize->buckets_used_max = capacity / 4u * 3u;
/xsrc/external/mit/MesaLib/dist/src/amd/vulkan/winsys/amdgpu/
H A Dradv_amdgpu_winsys.h61 uint32_t capacity; member in struct:radv_amdgpu_winsys::__anonf6d9bb920108
H A Dradv_amdgpu_bo.c321 if (ws->global_bo_list.count == ws->global_bo_list.capacity) {
322 unsigned capacity = MAX2(4, ws->global_bo_list.capacity * 2); local in function:radv_amdgpu_global_bo_list_add
324 realloc(ws->global_bo_list.bos, capacity * sizeof(struct radv_amdgpu_winsys_bo *));
331 ws->global_bo_list.capacity = capacity;
/xsrc/external/mit/xf86-video-qxl/dist/src/
H A Dmspace.h28 given initial capacity, or, if 0, the default granularity size. It
31 lock to control access. The capacity of the space will grow
37 //mspace create_mspace(size_t capacity, int locked);
50 space is used for bookkeeping, so the capacity must be at least this
56 mspace create_mspace_with_base(void* base, size_t capacity, int locked, void *user_data);
H A Dmspace.c2138 mspace create_mspace_with_base(void* base, size_t capacity, int locked, void *user_data) { argument
2143 if (capacity > msize + TOP_FOOT_SIZE &&
2144 capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) {
2145 m = init_user_mstate((char*)base, capacity, user_data);
/xsrc/external/mit/MesaLib.old/dist/src/util/tests/string_buffer/
H A Dstring_buffer_test.cpp72 return buf->capacity - buf->length - 1;
/xsrc/external/mit/MesaLib/dist/src/util/tests/string_buffer/
H A Dstring_buffer_test.cpp72 return buf->capacity - buf->length - 1;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/sb/
H A Dsb_valtable.cpp347 unsigned capacity = block_size * blocks.size(); local in function:r600_sb::sb_pool::allocate
349 if (total_size + sz > capacity) {
350 total_size = capacity;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/
H A Dsb_valtable.cpp347 unsigned capacity = block_size * blocks.size(); local in function:r600_sb::sb_pool::allocate
349 if (total_size + sz > capacity) {
350 total_size = capacity;
/xsrc/external/mit/freetype/dist/src/psaux/
H A Dpsobjs.c89 table->capacity = 0;
138 FT_MEM_COPY( table->block, old_base, table->capacity );
143 table->capacity = new_size;
188 if ( table->cursor + length > table->capacity )
191 FT_Offset new_size = table->capacity;
196 if ( in_offset < 0 || (FT_Offset)in_offset >= table->capacity )
259 table->capacity = table->cursor;
/xsrc/external/mit/MesaLib.old/dist/src/freedreno/vulkan/
H A Dtu_private.h589 uint32_t capacity; member in struct:tu_push_descriptor_set
882 uint32_t capacity; member in struct:tu_bo_list
H A Dtu_cmd_buffer.c41 list->count = list->capacity = 0;
73 if (list->count == list->capacity) {
80 list->capacity = new_capacity;
/xsrc/external/mit/freetype/dist/include/freetype/internal/
H A Dpsaux.h126 * capacity ::
154 FT_Offset capacity; /* current size of memory block */ member in struct:PS_TableRec_
877 * T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity. A
/xsrc/external/mit/MesaLib.old/dist/src/amd/vulkan/
H A Dradv_private.h666 unsigned capacity; member in struct:radv_bo_list
773 uint32_t capacity; member in struct:radv_push_descriptor_set
H A Dradv_device.c1654 bo_list->list.count = bo_list->capacity = 0;
1677 if (bo_list->list.count == bo_list->capacity) {
1678 unsigned capacity = MAX2(4, bo_list->capacity * 2); local in function:radv_bo_list_add
1679 void *data = realloc(bo_list->list.bos, capacity * sizeof(struct radeon_winsys_bo*));
1687 bo_list->capacity = capacity;
/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimgui.h753 ImGuiInputTextFlags_CallbackResize = 1 << 18, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this)
1195 inline int capacity() const { return Capacity; } function in struct:ImVector
1420 // - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
1434 int BufSize; // Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1
1592 void reserve(int capacity) { Buf.reserve(capacity); } argument
H A Dimgui_internal.h282 void Reserve(int capacity) { Data.reserve(capacity); Map.Data.reserve(capacity); } argument
566 ImVector<char> TempBuffer; // temporary buffer for callback and other other operations. size=capacity.
568 int BufCapacityA; // end-user buffer capacity

Completed in 46 milliseconds

12