Home
last modified time | relevance | path

Searched refs:lst (Results 1 – 25 of 249) sorted by relevance

12345678910

/third_party/libuv/src/unix/
Dos390-syscalls.c106 static void maybe_resize(uv__os390_epoll* lst, unsigned int len) { in maybe_resize() argument
112 if (len <= lst->size) in maybe_resize()
115 if (lst->size == 0) in maybe_resize()
119 event = lst->items[lst->size - 1]; in maybe_resize()
120 lst->items[lst->size - 1].fd = -1; in maybe_resize()
124 newlst = uv__reallocf(lst->items, newsize * sizeof(lst->items[0])); in maybe_resize()
128 for (i = lst->size; i < newsize; ++i) in maybe_resize()
134 lst->items = newlst; in maybe_resize()
135 lst->size = newsize; in maybe_resize()
144 static void init_message_queue(uv__os390_epoll* lst) { in init_message_queue() argument
[all …]
/third_party/grpc/tools/buildgen/plugins/
Dexpand_filegroups.py29 def uniquify(lst): argument
31 for el in lst:
62 for lst in FILEGROUP_LISTS:
63 fg[lst] = fg.get(lst, [])
64 fg['own_%s' % lst] = list(fg[lst])
98 for lst in FILEGROUP_LISTS:
99 vals = cur.get(lst, [])
100 vals.extend(filegroups[uses].get(lst, []))
101 cur[lst] = vals
129 for lst in FILEGROUP_LISTS:
[all …]
/third_party/ffmpeg/libavcodec/
Dbsf.c282 BSFListContext *lst = bsf->priv_data; in bsf_list_init() local
287 for (i = 0; i < lst->nb_bsfs; ++i) { in bsf_list_init()
288 ret = avcodec_parameters_copy(lst->bsfs[i]->par_in, cod_par); in bsf_list_init()
292 lst->bsfs[i]->time_base_in = tb; in bsf_list_init()
294 ret = av_bsf_init(lst->bsfs[i]); in bsf_list_init()
298 cod_par = lst->bsfs[i]->par_out; in bsf_list_init()
299 tb = lst->bsfs[i]->time_base_out; in bsf_list_init()
311 BSFListContext *lst = bsf->priv_data; in bsf_list_filter() local
314 if (!lst->nb_bsfs) in bsf_list_filter()
319 if (lst->idx) in bsf_list_filter()
[all …]
Dbsf.h256 void av_bsf_list_free(AVBSFList **lst);
266 int av_bsf_list_append(AVBSFList *lst, AVBSFContext *bsf);
278 int av_bsf_list_append2(AVBSFList *lst, const char * bsf_name, AVDictionary **options);
295 int av_bsf_list_finalize(AVBSFList **lst, AVBSFContext **bsf);
/third_party/python/Lib/test/
Dtest_list.py64 lst = [4, 5, 6, 7]
65 n = int((sys.maxsize*2+2) // len(lst))
68 self.assertRaises((MemoryError, OverflowError), mul, lst, n)
69 self.assertRaises((MemoryError, OverflowError), imul, lst, n)
205 lst.clear()
208 lst = [X()]
210 lst.index(lst)
217 lst = L([X()])
218 lst.count(lst)
220 lst = L([X()])
[all …]
Dtest_index.py169 lst = list('ab!cdefghi!j')
170 del lst[self.o]
171 del lst[self.n]
172 lst[self.o] = 'X'
173 lst[self.n] = 'Y'
174 self.assertEqual(lst, list('abYdefghXj'))
176 lst = [5, 6, 7, 8, 9, 10, 11]
177 lst.__setitem__(self.n, "here")
178 self.assertEqual(lst, [5, 6, "here", 8, 9, 10, 11])
179 lst.__delitem__(self.n)
[all …]
Dtest_buffer.py184 lst = [0] * n
186 lst[i] = gen_item(fmt, obj)
187 return lst
248 def atomp(lst): argument
250 return not isinstance(lst, list)
252 def listp(lst): argument
253 return isinstance(lst, list)
255 def prod(lst): argument
257 if len(lst) == 0:
259 x = lst[0]
[all …]
/third_party/vk-gl-cts/modules/gles3/scripts/
Dgenutil.py105 def shuffled(lst): argument
106 tmp = lst[:]
110 def repeatToLength(lst, toLength): argument
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
117 def toUint(lst): return [Uint(int(v.x)) for v in lst] argument
118 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
[all …]
/third_party/vk-gl-cts/modules/gles31/scripts/
Dgenutil.py105 def shuffled(lst): argument
106 tmp = lst[:]
110 def repeatToLength(lst, toLength): argument
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
117 def toUint(lst): return [Uint(int(v.x)) for v in lst] argument
118 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
[all …]
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/
Dcdoc.py203 lst = []
212 lst.append((n, l))
219 lst.append((n+i, l))
222 lst.append((n+i, ''))
227 lst.append((n, l + '\n'))
233 lst.append((n, '\t' + l + '\n'))
241 lst.append((n, l))
242 lst.append((n+1, ''))
250 lst.append((n, r))
251 return lst
[all …]
/third_party/vk-gl-cts/modules/gles2/scripts/
Dgenutil.py105 def shuffled(lst): argument
106 tmp = lst[:]
110 def repeatToLength(lst, toLength): argument
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
117 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
118 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
119 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
120 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] argument
[all …]
/third_party/python/Modules/
D_queuemodule.c26 PyObject *lst; member
40 Py_CLEAR(self->lst); in simplequeue_clear()
66 Py_VISIT(self->lst); in simplequeue_traverse()
87 self->lst = PyList_New(0); in simplequeue_new_impl()
95 if (self->lst == NULL) { in simplequeue_new_impl()
123 if (PyList_Append(self->lst, item) < 0) in _queue_SimpleQueue_put_impl()
158 n = PyList_GET_SIZE(self->lst); in simplequeue_pop_item()
161 item = PyList_GET_ITEM(self->lst, self->lst_pos); in simplequeue_pop_item()
163 PyList_SET_ITEM(self->lst, self->lst_pos, Py_None); in simplequeue_pop_item()
168 if (PyList_SetSlice(self->lst, 0, self->lst_pos, NULL)) { in simplequeue_pop_item()
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/core/
Dtensor_row.cc32 TensorRow::TensorRow(row_id_type id, const std::initializer_list<value_type> &lst) in TensorRow() argument
33 : id_(id), path_({}), row_(lst), tensor_row_flag_(kFlagNone) {} in TensorRow()
51 TensorRow &TensorRow::operator=(const std::initializer_list<TensorRow::value_type> &lst) { in operator =() argument
52 row_ = lst; in operator =()
60 TensorRow::TensorRow(row_id_type id, std::initializer_list<value_type> &&lst) noexcept in TensorRow() argument
61 : id_(id), path_({}), row_(std::move(lst)), tensor_row_flag_(kFlagNone) {} in TensorRow()
82 TensorRow &TensorRow::operator=(std::initializer_list<TensorRow::value_type> &&lst) noexcept { in operator =() argument
83 row_ = std::move(lst); in operator =()
/third_party/skia/tools/skqp/
Dgn_to_bp.py140 def strip_slashes(lst): argument
141 return {str(p.lstrip('/')) for p in lst}
178 def bpfmt(indent, lst, sort=True): argument
180 lst = sorted(lst)
181 return ('\n' + ' '*indent).join('"%s",' % v for v in lst)
/third_party/flutter/skia/tools/skqp/
Dgn_to_bp.py140 def strip_slashes(lst): argument
141 return {str(p.lstrip('/')) for p in lst}
175 def bpfmt(indent, lst, sort=True): argument
177 lst = sorted(lst)
178 return ('\n' + ' '*indent).join('"%s",' % v for v in lst)
/third_party/python/Lib/test/crashers/
Dmutation_inside_cyclegc.py19 del lst[:]
25 lst = [str(i)] variable
30 while lst:
31 keepalive.append(lst[:])
/third_party/openssl/crypto/asn1/
Dasn_mstbl.c63 STACK_OF(CONF_VALUE) *lst = NULL; in do_tcreate()
70 lst = X509V3_parse_list(value); in do_tcreate()
71 if (!lst) in do_tcreate()
73 for (i = 0; i < sk_CONF_VALUE_num(lst); i++) { in do_tcreate()
74 cnf = sk_CONF_VALUE_value(lst, i); in do_tcreate()
111 sk_CONF_VALUE_pop_free(lst, X509V3_conf_free); in do_tcreate()
/third_party/python/Lib/turtledemo/
Dtree.py28 lst = []
34 lst.append(p)
35 lst.append(q)
36 for x in tree(lst, l*f, a, f):
/third_party/mindspore/mindspore/ccsrc/vm/
Dsegment_runner.cc93 …ncGraphPtr, AnfNodePtrList, AnfNodePtrList> TransformSegmentToAnfGraph(const AnfNodePtrList &lst) { in TransformSegmentToAnfGraph() argument
94 if (lst.empty()) { in TransformSegmentToAnfGraph()
100 MS_EXCEPTION_IF_NULL(lst[0]->cast<CNodePtr>()); in TransformSegmentToAnfGraph()
101 MS_EXCEPTION_IF_NULL(lst[0]->cast<CNodePtr>()->func_graph()); in TransformSegmentToAnfGraph()
102 …TraceGuard guard(std::make_shared<TraceSegmentTransform>(lst[0]->cast<CNodePtr>()->func_graph()->d… in TransformSegmentToAnfGraph()
108 for (auto n : lst) { in TransformSegmentToAnfGraph()
144 auto mgr = lst[0]->func_graph()->manager(); in TransformSegmentToAnfGraph()
146 auto outputs = GetOutput(lst, mgr->node_users(), eqv_keys); in TransformSegmentToAnfGraph()
/third_party/mesa3d/src/panfrost/bifrost/
Dbifrost_isa.py317 lst = list(OrderedDict.fromkeys(modifier_lists[mod]))
320 if len(lst) == 2 and lst[1] == "none":
321 lst.reverse()
324 assert(lst[2] == "none")
325 lst[2] = lst[0]
326 lst[0] = "none"
328 out[mod] = lst
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp428 QModelIndexList lst = model.match(model.index(0, 0), in add_station() local
431 for (int i = 0; i < lst.size(); i++) { in add_station()
433 item = model.itemFromIndex(lst[i]); in add_station()
438 model.removeRow(lst[i].row()); in add_station()
566 QModelIndexList lst = model.match(model.index(0, 0), peer_role_bss_id, in remove_bss() local
568 if (lst.size() == 0) in remove_bss()
570 model.removeRow(lst[0].row()); in remove_bss()
786 QModelIndexList lst = model.match(model.index(0, 0), peer_role_address, in find_addr() local
788 if (lst.size() == 0) in find_addr()
790 return model.itemFromIndex(lst[0]); in find_addr()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp428 QModelIndexList lst = model.match(model.index(0, 0), in add_station() local
431 for (int i = 0; i < lst.size(); i++) { in add_station()
433 item = model.itemFromIndex(lst[i]); in add_station()
438 model.removeRow(lst[i].row()); in add_station()
564 QModelIndexList lst = model.match(model.index(0, 0), peer_role_bss_id, in remove_bss() local
566 if (lst.size() == 0) in remove_bss()
568 model.removeRow(lst[0].row()); in remove_bss()
784 QModelIndexList lst = model.match(model.index(0, 0), peer_role_address, in find_addr() local
786 if (lst.size() == 0) in find_addr()
788 return model.itemFromIndex(lst[0]); in find_addr()
[all …]
/third_party/python/Modules/_decimal/tests/
Dranddec.py153 lst = range(prec+30)
155 lst = sample(range(prec+30), itr)
156 nines = [10**n - 1 for n in lst]
157 pow10 = [10**n for n in lst]
170 lst = range(prec+30)
172 lst = sample(range(prec+30), itr)
173 nines = [10**n - 1 for n in lst]
174 pow10 = [10**n for n in lst]
315 lst = range(prec+30)
317 lst = sample(range(prec+30), itr)
[all …]
/third_party/boost/libs/python/test/
Dpointer_vector.cpp32 ListOfObjects lst; in returnList() local
33 lst.push_back(new Concrete1()); return lst; in returnList()
/third_party/flutter/skia/gn/
Dgn_to_bp.py351 def strip_slashes(lst): argument
352 return {str(p.lstrip('/')) for p in lst}
476 def bpfmt(indent, lst, sort=True): argument
478 lst = sorted(lst)
479 return ('\n' + ' '*indent).join('"%s",' % v for v in lst)

12345678910