Searched refs:last_idx (Results 1 – 9 of 9) sorted by relevance
/openbsd/usr.sbin/npppd/common/ |
H A D | slist.c | 159 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 D | slist_test.c | 66 , 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 D | slist.h | 32 int last_idx; member
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_bitvector_test.cpp | 35 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 D | sanitizer_stack_store.cpp | 77 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 D | DWARFExpression.cpp | 1375 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 D | if_et.c | 1766 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 D | TypeSystemClang.cpp | 7239 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 D | perlvar.pod | 1129 my $last_idx = scalar(@-) - 1; 1130 my @arr = 1 .. $last_idx;
|