Home
last modified time | relevance | path

Searched refs:last_idx (Results 1 - 14 of 14) sorted by relevance

/third_party/musl/src/malloc/mallocng/
H A Dfree.c19 ctx.usage_by_class[sc] -= g->last_idx+1; in free_group()
60 size_t cnt = g->last_idx+1; in okay_to_free()
78 if (mask+self == (2u<<g->last_idx)-1 && okay_to_free(g)) { in nontrivial_free()
111 uint32_t self = 1u<<idx, all = (2u<<g->last_idx)-1; in free()
119 if (((uintptr_t)(start-1) ^ (uintptr_t)end) >= 2*PGSZ && g->last_idx) { in free()
H A Dmalloc.c48 static int get_randomIdx(int avail_mask, int last_idx) in get_randomIdx() argument
56 r = get_random8() % last_idx; in get_randomIdx()
57 cmask = ~((2u << (last_idx - r)) - 1); in get_randomIdx()
197 if (mask == (2u<<m->last_idx)-1 && m->freeable) { in try_avail()
220 if (cnt > m->last_idx+1) in try_avail()
221 cnt = m->last_idx+1; in try_avail()
230 int idx = get_randomIdx(mask, m->last_idx); in try_avail()
350 m->last_idx = cnt-1; in alloc_group()
396 g->last_idx = 0; in malloc()
433 idx = get_randomIdx(mask, g->last_idx); in malloc()
[all...]
H A Dmeta.h28 uintptr_t last_idx:5; member
157 assert(index <= meta->last_idx); in get_meta()
192 if (!g->last_idx && g->maplen) { in get_stride()
H A Ddonate.c24 m->last_idx = 0; in donate()
/third_party/musl/porting/linux/user/src/malloc/mallocng/
H A Dmalloc.c46 static int get_randomIdx(int avail_mask, int last_idx) in get_randomIdx() argument
54 r = get_random8() % last_idx; in get_randomIdx()
55 cmask = ~((2u << (last_idx - r)) - 1); in get_randomIdx()
193 if (mask == (2u<<m->last_idx)-1 && m->freeable) { in try_avail()
216 if (cnt > m->last_idx+1) in try_avail()
217 cnt = m->last_idx+1; in try_avail()
227 int idx = get_randomIdx(mask, m->last_idx); in try_avail()
345 m->last_idx = cnt-1; in alloc_group()
389 g->last_idx = 0; in malloc()
426 idx = get_randomIdx(mask, g->last_idx); in malloc()
[all...]
H A Dmeta.h28 uintptr_t last_idx:5; member
157 assert(index <= meta->last_idx); in get_meta()
192 if (!g->last_idx && g->maplen) { in get_stride()
H A Ddonate.c24 m->last_idx = 0; in donate()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
H A Dlayout_array_too_long.rs165 pub last_idx: u32,
295 ::std::ptr::addr_of!((*ptr).last_idx) as usize - ptr as usize in bindgen_test_layout_ip_frag_pkt()
302 stringify!(last_idx) in bindgen_test_layout_ip_frag_pkt()
332 self.last_idx == other.last_idx && in eq()
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
H A Dlayout_array_too_long.h59 uint32_t last_idx; /**< index of next entry to fill */ member
H A Dlayout_large_align_field.h70 uint32_t last_idx; /**< index of next entry to fill */ member
/third_party/mesa3d/src/intel/vulkan/
H A Danv_batch_chain.c1882 uint32_t last_idx = execbuf->bo_count - 1; in setup_execbuf_for_cmd_buffers() local
1887 execbuf->objects[idx] = execbuf->objects[last_idx]; in setup_execbuf_for_cmd_buffers()
1888 execbuf->bos[idx] = execbuf->bos[last_idx]; in setup_execbuf_for_cmd_buffers()
1891 execbuf->objects[last_idx] = tmp_obj; in setup_execbuf_for_cmd_buffers()
1892 execbuf->bos[last_idx] = first_batch_bo->bo; in setup_execbuf_for_cmd_buffers()
1893 first_batch_bo->bo->exec_obj_index = last_idx; in setup_execbuf_for_cmd_buffers()
1987 uint32_t last_idx = execbuf->bo_count - 1; in setup_utrace_execbuf() local
1992 execbuf->objects[idx] = execbuf->objects[last_idx]; in setup_utrace_execbuf()
1993 execbuf->bos[idx] = execbuf->bos[last_idx]; in setup_utrace_execbuf()
1996 execbuf->objects[last_idx] in setup_utrace_execbuf()
[all...]
/third_party/musl/src/malloc/oldmallocng/
H A Dmallinfo.c44 mi->uordblks += sz*(g->last_idx+1-nr_unused); in accumulate_meta()
/third_party/jerryscript/jerry-core/api/
H A Djerry-snapshot.c1469 const lit_utf8_size_t last_idx = num_of_literals - lit_idx - 1; in jerry_save_literals_sort() local
1471 ecma_string_t *tmp_str_p = literals[last_idx]; in jerry_save_literals_sort()
1472 literals[last_idx] = literals[0]; in jerry_save_literals_sort()
1475 jerry_save_literals_down_heap (literals, last_idx, 0); in jerry_save_literals_sort()
/third_party/ffmpeg/libavformat/
H A Davidec.c1613 unsigned last_idx = -1; in avi_read_idx1() local
1670 if (last_idx != pos && len) { in avi_read_idx1()
1673 last_idx= pos; in avi_read_idx1()

Completed in 14 milliseconds