Home
last modified time | relevance | path

Searched refs:tup (Results 1 – 25 of 94) sorted by relevance

1234

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
Dmake_from_tuple.pass.cpp63 constexpr bool do_constexpr_test(Tuple&& tup) { in do_constexpr_test() argument
66 return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup; in do_constexpr_test()
76 bool do_forwarding_test(Tuple&& tup) { in do_forwarding_test() argument
79 const Tp value = std::make_from_tuple<Tp>(std::forward<Tuple>(tup)); in do_forwarding_test()
80 return value.args == tup in do_forwarding_test()
86 constexpr std::tuple<> tup; in test_constexpr_construction() local
87 static_assert(do_constexpr_test(tup), ""); in test_constexpr_construction()
90 constexpr std::tuple<int> tup(42); in test_constexpr_construction() local
91 static_assert(do_constexpr_test(tup), ""); in test_constexpr_construction()
94 constexpr std::tuple<int, long, void*> tup(42, 101, nullptr); in test_constexpr_construction() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DIteratorTest.cpp278 for (auto tup : zip(pi, odd, message)) { in TEST() local
279 EXPECT_EQ(get<0>(tup) & 0x01, get<1>(tup)); in TEST()
280 EXPECT_EQ(get<0>(tup) & 0x01 ? 'y' : 'n', get<2>(tup)); in TEST()
284 for (auto tup : zip(pi, SmallVector<bool, 0>{1, 1, 0, 1, 1})) { in TEST() local
285 EXPECT_EQ(get<0>(tup) & 0x01, get<1>(tup)); in TEST()
294 for (auto tup : zip_first(SmallVector<bool, 0>{1, 1, 0, 1}, pi)) { in TEST() local
295 EXPECT_EQ(get<0>(tup), get<1>(tup) & 0x01); in TEST()
307 for (auto tup : zip(pi, message, message)) { in TEST() local
308 EXPECT_EQ(get<1>(tup), get<2>(tup)); in TEST()
309 get<2>(tup) = get<0>(tup) & 0x01 ? 'y' : 'n'; in TEST()
[all …]
/external/python/cpython2/Objects/
Dstructseq.c240 PyObject *tup; in structseq_repr() local
250 if ((tup = make_tuple(obj)) == NULL) { in structseq_repr()
267 val = PyTuple_GetItem(tup, i); in structseq_repr()
273 Py_DECREF(tup); in structseq_repr()
278 Py_DECREF(tup); in structseq_repr()
304 Py_DECREF(tup); in structseq_repr()
318 PyObject *tup, *result; in structseq_concat() local
319 tup = make_tuple(obj); in structseq_concat()
320 result = PySequence_Concat(tup, b); in structseq_concat()
321 Py_DECREF(tup); in structseq_concat()
[all …]
/external/fonttools/Tests/ttLib/tables/
DTupleVariation_test.py197 tup, deltas, _ = var.compile(axisTags, sharedPeakIndices,
201 self.assertEqual("00 08 00 77", hexencode(tup))
212 tup, deltas, _ = var.compile(axisTags, sharedPeakIndices,
216 self.assertEqual("00 08 40 77 13 33 06 66 2C CD 39 9A", hexencode(tup))
227 tup, deltas, _ = var.compile(axisTags, sharedPeakIndices,
231 self.assertEqual("00 09 20 77", hexencode(tup))
258 tup, deltas, _ = var.compile(axisTags=["wght", "wdth"],
262 self.assertEqual("00 08 80 00 20 00 33 33", hexencode(tup))
271 tup, deltas, _ = var.compile(axisTags=["wght", "wdth"],
275 self.assertEqual("00 04 80 00 20 00 33 33", hexencode(tup))
[all …]
/external/curl/tests/python_dependencies/impacket/
Duuid.py41 def uuidtup_to_bin(tup): argument
42 if len(tup) != 2: return
43 return string_to_bin(tup[0]) + stringver_to_bin(tup[1])
66 def uuidtup_to_string(tup): argument
67 uuid, (maj, min) = tup
/external/python/dateutil/dateutil/tz/
Dwin.py206 tup = struct.unpack("=3l16h", keydict["TZI"])
207 stdoffset = -tup[0]-tup[1] # Bias + StandardBias * -1
208 dstoffset = stdoffset-tup[2] # + DaylightBias * -1
218 self._stdminute) = tup[4:9]
224 self._dstminute) = tup[12:17]
262 tup = struct.unpack("=8h", keydict["StandardStart"])
267 self._stdminute) = tup[1:5]
269 self._stddayofweek = tup[7]
271 tup = struct.unpack("=8h", keydict["DaylightStart"])
276 self._dstminute) = tup[1:5]
[all …]
/external/libcxx/test/std/utilities/intseq/intseq.general/
Dinteger_seq.pass.cpp54 auto tup = std::make_tuple ( 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ); in main() local
57 auto t3 = extract ( tup, int3() ); in main()
61 auto t7 = extract ( tup, size7 ()); in main()
65 auto t4 = extract ( tup, size4 ()); in main()
69 auto t2 = extract ( tup, size2 ()); in main()
73 auto tintmix = extract ( tup, intmix ()); in main()
77 auto tsizemix = extract ( tup, sizemix ()); in main()
/external/python/cpython3/Lib/test/crashers/
Dgc_inspection.py27 [tup] = [x for x in gc.get_referrers(marker) if type(x) is tuple]
28 print(tup)
29 print(tup[1])
/external/python/cpython2/Lib/test/crashers/
Dgc_inspection.py27 [tup] = [x for x in gc.get_referrers(marker) if type(x) is tuple]
28 print tup
29 print tup[1]
/external/python/cpython2/Demo/parser/
Dtest_parser.py15 tup = parser.st2tuple(st)
19 new = parser.tuple2st(tup)
26 if tup != parser.st2tuple(new):
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Ddisable_reduced_arity_initialization_extension.pass.cpp75 auto tup = doc_example(); in test_example_from_docs() local
76 assert(std::get<0>(tup) == "hello world"); in test_example_from_docs()
77 assert(std::get<1>(tup) == 42); in test_example_from_docs()
78 assert(std::get<2>(tup) == std::error_code{}); in test_example_from_docs()
Denable_reduced_arity_initialization_extension.pass.cpp87 auto tup = doc_example(); in test_example_from_docs() local
88 assert(std::get<0>(tup) == "hello world"); in test_example_from_docs()
89 assert(std::get<1>(tup) == 42); in test_example_from_docs()
90 assert(std::get<2>(tup) == std::error_code{}); in test_example_from_docs()
/external/bcc/tools/
Dinject.py133 for tup in self.preds[1:]:
139 """ % (tup[1], tup[0], tup[1])
422 tup = (pred, absolute_order)
425 self.map[func] = [tup]
427 self.map[func].append(tup)
Dbpflist.py70 tup = (pid, match.group(1))
71 counts[tup] = counts.get(tup, 0) + 1
/external/python/cpython3/Objects/
Dstructseq.c245 PyObject* tup = NULL; in structseq_reduce() local
253 tup = PyTuple_New(n_visible_fields); in structseq_reduce()
254 if (!tup) in structseq_reduce()
263 PyTuple_SET_ITEM(tup, i, self->ob_item[i]); in structseq_reduce()
272 result = Py_BuildValue("(O(OO))", Py_TYPE(self), tup, dict); in structseq_reduce()
274 Py_DECREF(tup); in structseq_reduce()
280 Py_XDECREF(tup); in structseq_reduce()
/external/python/cpython2/Modules/
Dtimemodule.c465 PyObject *tup = NULL; in time_strftime() local
474 if (!PyArg_ParseTuple(args, "s|O:strftime", &fmt, &tup)) in time_strftime()
477 if (tup == NULL) { in time_strftime()
480 } else if (!gettmarg(tup, &buf) in time_strftime()
666 PyObject *tup = NULL; in time_asctime() local
668 if (!PyArg_UnpackTuple(args, "asctime", 0, 1, &tup)) in time_asctime()
670 if (tup == NULL) { in time_asctime()
673 } else if (!gettmarg(tup, &buf) in time_asctime()
727 time_mktime(PyObject *self, PyObject *tup) in time_mktime() argument
731 if (!gettmarg(tup, &buf)) in time_mktime()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
Dcommands.py222 tup = ext.name.split('.')
223 if len(tup) == 1:
224 pkg, mod = None, tup[0]
226 pkg, mod = '.'.join(tup[:-1]), tup[-1]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Dcommands.py223 tup = ext.name.split('.')
224 if len(tup) == 1:
225 pkg, mod = None, tup[0]
227 pkg, mod = '.'.join(tup[:-1]), tup[-1]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Dcommands.py223 tup = ext.name.split('.')
224 if len(tup) == 1:
225 pkg, mod = None, tup[0]
227 pkg, mod = '.'.join(tup[:-1]), tup[-1]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
Dcommands.py222 tup = ext.name.split('.')
223 if len(tup) == 1:
224 pkg, mod = None, tup[0]
226 pkg, mod = '.'.join(tup[:-1]), tup[-1]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/
Dtuple_array_template_depth.pass.cpp32 tuple_t tup; in main() local
33 tup = arr; in main()
/external/libchrome/build/android/gyp/util/
Dbuild_utils.py344 for tup in inputs:
345 if isinstance(tup, basestring):
346 tup = (os.path.relpath(tup, base_dir), tup)
347 input_tuples.append(tup)
350 input_tuples.sort(key=lambda tup: tup[0])
/external/python/cpython2/Lib/
Dargparse.py501 tup = self._current_indent, '', action_header
502 action_header = '%*s%s\n' % tup
506 tup = self._current_indent, '', action_width, action_header
507 action_header = '%*s%-*s ' % tup
512 tup = self._current_indent, '', action_header
513 action_header = '%*s%s\n' % tup
1089 tup = parser_name, ', '.join(self._name_parser_map)
1090 msg = _('unknown parser %r (choices: %s)') % tup
1413 tup = option_string, self.prefix_chars
1414 raise ValueError(msg % tup)
[all …]
/external/python/cpython2/Lib/compiler/
Dmisc.py2 def flatten(tup): argument
4 for elt in tup:
/external/libaom/libaom/test/
Dvisual_metrics.py120 metric_set1.sort(key=lambda tup: tup[1])
121 metric_set2.sort(key=lambda tup: tup[1])

1234