| /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/ |
| H A D | brw_ir_allocator.h | 37 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 D | brw_ir_allocator.h | 37 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 D | u_dynarray.h | 41 * 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 D | string_buffer.c | 30 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 D | string_buffer.h | 41 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 D | string_buffer.c | 30 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 D | string_buffer.h | 41 uint32_t capacity; member in struct:_mesa_string_buffer 84 str->capacity); 88 str->capacity = str->length + 1;
|
| H A D | u_dynarray.h | 42 * 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 D | fcserialize.c | 196 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 D | radv_amdgpu_winsys.h | 61 uint32_t capacity; member in struct:radv_amdgpu_winsys::__anonf6d9bb920108
|
| H A D | radv_amdgpu_bo.c | 321 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 D | mspace.h | 28 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 D | mspace.c | 2138 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 D | string_buffer_test.cpp | 72 return buf->capacity - buf->length - 1;
|
| /xsrc/external/mit/MesaLib/dist/src/util/tests/string_buffer/ |
| H A D | string_buffer_test.cpp | 72 return buf->capacity - buf->length - 1;
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/sb/ |
| H A D | sb_valtable.cpp | 347 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 D | sb_valtable.cpp | 347 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 D | psobjs.c | 89 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 D | tu_private.h | 589 uint32_t capacity; member in struct:tu_push_descriptor_set 882 uint32_t capacity; member in struct:tu_bo_list
|
| H A D | tu_cmd_buffer.c | 41 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 D | psaux.h | 126 * 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 D | radv_private.h | 666 unsigned capacity; member in struct:radv_bo_list 773 uint32_t capacity; member in struct:radv_push_descriptor_set
|
| H A D | radv_device.c | 1654 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 D | imgui.h | 753 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 D | imgui_internal.h | 282 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
|