HomeSort by: relevance | last modified time | path
    Searched refs:capacity (Results 1 - 25 of 34) sorted by relevancy

1 2

  /xsrc/external/mit/MesaLib/dist/src/intel/compiler/
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/intel/compiler/
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/
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...]
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;
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/
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;
string_buffer.h 41 uint32_t capacity; member in struct:_mesa_string_buffer
84 str->capacity);
88 str->capacity = str->length + 1;
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
89 data = reralloc_size(buf->mem_ctx, buf->data, capacity);
91 data = realloc(buf->data, capacity);
97 buf->capacity = capacity
    [all...]
  /xsrc/external/mit/fontconfig/dist/src/
fcserialize.c 196 size_t capacity = serialize->buckets_count; local
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/
radv_amdgpu_winsys.h 61 uint32_t capacity; member in struct:radv_amdgpu_winsys::__anon603
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
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/
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);
mspace.c 2138 mspace create_mspace_with_base(void* base, size_t capacity, int locked, void *user_data) {
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/dist/src/util/tests/string_buffer/
string_buffer_test.cpp 72 return buf->capacity - buf->length - 1;
  /xsrc/external/mit/MesaLib.old/dist/src/util/tests/string_buffer/
string_buffer_test.cpp 72 return buf->capacity - buf->length - 1;
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sb/
sb_valtable.cpp 347 unsigned capacity = block_size * blocks.size(); local
349 if (total_size + sz > capacity) {
350 total_size = capacity;
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/sb/
sb_valtable.cpp 347 unsigned capacity = block_size * blocks.size(); local
349 if (total_size + sz > capacity) {
350 total_size = capacity;
  /xsrc/external/mit/freetype/dist/src/psaux/
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/
tu_private.h 589 uint32_t capacity; member in struct:tu_push_descriptor_set
882 uint32_t capacity; member in struct:tu_bo_list
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/
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/
radv_private.h 666 unsigned capacity; member in struct:radv_bo_list
773 uint32_t capacity; member in struct:radv_push_descriptor_set
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
1679 void *data = realloc(bo_list->list.bos, capacity * sizeof(struct radeon_winsys_bo*));
1687 bo_list->capacity = capacity;
  /xsrc/external/mit/MesaLib/dist/src/imgui/
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)
1178 int Capacity;
1187 inline ImVector() { Size = Capacity = 0; Data = NULL; }
1188 inline ImVector(const ImVector<T>& src) { Size = Capacity = 0; Data = NULL; operator=(src); }
1195 inline int capacity() const { return Capacity; } function in struct:ImVector
1199 inline void clear() { if (Data) { Size = Capacity = 0; ImGui::MemFree(Data); Data = NULL; } }
1208 inline void swap(ImVector<T>& rhs) { int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size; int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data;
    [all...]
imgui_internal.h 282 void Reserve(int capacity) { Data.reserve(capacity); Map.Data.reserve(capacity); }
566 ImVector<char> TempBuffer; // temporary buffer for callback and other other operations. size=capacity.
568 int BufCapacityA; // end-user buffer capacity

Completed in 76 milliseconds

1 2