Home
last modified time | relevance | path

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

/openbsd/usr.sbin/npppd/common/
H A Dslist.c159 if (list->last_idx < list->first_idx && list->last_idx >= 0) { in slist_grow0()
165 if (list->last_idx <= grow_sz) { in slist_grow0()
172 list->last_idx = list->list_size + list->last_idx; in slist_grow0()
184 list->last_idx -= grow_sz; in slist_grow0()
212 INCR_IDX(list, last_idx); in slist_add()
291 DECR_IDX(list, last_idx); in slist_remove_last()
375 last = list->last_idx; in slist_remove()
376 DECR_IDX(list, last_idx); in slist_remove()
387 last = list->last_idx; in slist_remove()
388 DECR_IDX(list, last_idx); in slist_remove()
[all …]
H A Dslist_test.c66 , l->itr_curr, l->itr_next, l->first_idx, l->last_idx in dump()
96 l->last_idx = 64; \ in test_01a()
223 ASSERT(sl.last_idx >= 0 && sl.last_idx < sl.list_size); in test_03()
225 ASSERT(sl.last_idx >= 0 && sl.last_idx < sl.list_size); in test_03()
302 sl.last_idx = sl.first_idx + 255; in test_04()
303 sl.last_idx %= sl.list_size; in test_04()
332 ASSERT(sl.last_idx == 7); in test_05()
391 l->last_idx = 120; in test_07()
H A Dslist.h32 int last_idx; member
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_bitvector_test.cpp35 uptr last_idx = bv.size(); in CheckBV() local
40 if (last_idx != bv.size()) in CheckBV()
41 EXPECT_LT(last_idx, idx); in CheckBV()
42 last_idx = idx; in CheckBV()
47 last_idx = bv.size(); in CheckBV()
50 if (last_idx != bv.size()) in CheckBV()
51 EXPECT_LT(last_idx, idx); in CheckBV()
52 last_idx = idx; in CheckBV()
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stack_store.cpp77 uptr last_idx = GetBlockIdx(start + count - 1); in Alloc() local
78 if (LIKELY(block_idx == last_idx)) { in Alloc()
91 *pack += blocks_[last_idx].Stored(count - in_first); in Alloc()
/openbsd/gnu/llvm/lldb/source/Expression/
H A DDWARFExpression.cpp1375 size_t last_idx = stack.size() - 1; in Evaluate() local
1376 Value old_top = stack[last_idx]; in Evaluate()
1377 stack[last_idx] = stack[last_idx - 1]; in Evaluate()
1378 stack[last_idx - 1] = stack[last_idx - 2]; in Evaluate()
1379 stack[last_idx - 2] = old_top; in Evaluate()
/openbsd/sys/dev/pci/
H A Dif_et.c1766 int error, maxsegs, first_idx, last_idx, i; in et_encap() local
1819 last_idx = -1; in et_encap()
1832 last_idx = idx; in et_encap()
1844 KKASSERT(last_idx >= 0); in et_encap()
1845 tbd->tbd_buf[first_idx].tb_dmap = tbd->tbd_buf[last_idx].tb_dmap; in et_encap()
1846 tbd->tbd_buf[last_idx].tb_dmap = map; in et_encap()
1847 tbd->tbd_buf[last_idx].tb_mbuf = m; in et_encap()
/openbsd/gnu/llvm/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp7239 const size_t last_idx = args_size - 1; in GetNthTemplateArgument() local
7243 if (idx < last_idx) in GetNthTemplateArgument()
7248 if (!expand_pack || args[last_idx].getKind() != clang::TemplateArgument::Pack) in GetNthTemplateArgument()
7254 const auto &pack = args[last_idx]; in GetNthTemplateArgument()
7255 const size_t pack_idx = idx - last_idx; in GetNthTemplateArgument()
/openbsd/gnu/usr.bin/perl/pod/
H A Dperlvar.pod1129 my $last_idx = scalar(@-) - 1;
1130 my @arr = 1 .. $last_idx;