Home
last modified time | relevance | path

Searched refs:last_idx (Results 1 – 20 of 20) sorted by relevance

/third_party/musl/src/malloc/mallocng/
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()
Dmalloc.c135 if (mask == (2u<<m->last_idx)-1 && m->freeable) { in try_avail()
158 if (cnt > m->last_idx+1) in try_avail()
159 cnt = m->last_idx+1; in try_avail()
280 m->last_idx = cnt-1; in alloc_group()
323 g->last_idx = 0; in malloc()
Dmeta.h28 uintptr_t last_idx:5; member
142 assert(index <= meta->last_idx); in get_meta()
177 if (!g->last_idx && g->maplen) { in get_stride()
Ddonate.c24 m->last_idx = 0; in donate()
/third_party/musl/porting/linux/user/src/malloc/mallocng/
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()
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()
Ddonate.c24 m->last_idx = 0; in donate()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dlayout_array_too_long.rs165 pub last_idx: u32, field
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()
Dlayout_large_align_field.rs195 pub last_idx: u32, field
325 ::std::ptr::addr_of!((*ptr).last_idx) as usize - ptr as usize in bindgen_test_layout_ip_frag_pkt()
332 stringify!(last_idx) in bindgen_test_layout_ip_frag_pkt()
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dlayout_array_too_long.h59 uint32_t last_idx; /**< index of next entry to fill */ member
Dlayout_large_align_field.h70 uint32_t last_idx; /**< index of next entry to fill */ member
/third_party/mesa3d/src/intel/vulkan/
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] = tmp_obj; in setup_utrace_execbuf()
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_ctr_drbg.function197 size_t last_idx;
211 last_idx = test_offset_idx;
215 TEST_ASSERT(test_offset_idx - last_idx >= byte_strength);
/third_party/musl/src/malloc/oldmallocng/
Dmallinfo.c44 mi->uordblks += sz*(g->last_idx+1-nr_unused);
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/
Drtptwcc.c969 guint16 last_idx; in _prune_sent_packets() local
977 last_idx = last->seqnum - first->seqnum; in _prune_sent_packets()
979 if (last_idx < twcc->sent_packets->len) in _prune_sent_packets()
980 g_array_remove_range (twcc->sent_packets, 0, last_idx); in _prune_sent_packets()
/third_party/jerryscript/jerry-core/api/
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/gstreamer/gstplugins_good/gst/matroska/
Dmatroska-read-common.c1731 GstMatroskaIndex *last_idx; in gst_matroska_read_common_parse_index_cuetrack() local
1733 last_idx = &g_array_index (common->index, GstMatroskaIndex, in gst_matroska_read_common_parse_index_cuetrack()
1735 if (last_idx->block == idx.block && last_idx->pos == idx.pos && in gst_matroska_read_common_parse_index_cuetrack()
1736 last_idx->track == idx.track && idx.time > last_idx->time) { in gst_matroska_read_common_parse_index_cuetrack()
Dmatroska-mux.c4150 gint last_idx = -1; in gst_matroska_mux_write_data() local
4153 for (last_idx = mux->num_indexes - 1; last_idx >= 0; last_idx--) { in gst_matroska_mux_write_data()
4154 if (mux->index[last_idx].track == collect_pad->track->num) in gst_matroska_mux_write_data()
4159 if (last_idx < 0 || mux->min_index_interval == 0 || in gst_matroska_mux_write_data()
4160 (GST_CLOCK_DIFF (mux->index[last_idx].time, buffer_timestamp) in gst_matroska_mux_write_data()
/third_party/ffmpeg/libavformat/
Davidec.c1593 unsigned last_idx = -1; in avi_read_idx1() local
1650 if (last_idx != pos && len) { in avi_read_idx1()
1653 last_idx= pos; in avi_read_idx1()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h27598 int last_idx; member