/third_party/mindspore/tests/ut/cpp/operator/ |
D | cc_implementations_test.cc | 33 ValuePtrList list; in TEST_F() local 34 list.push_back(MakeValue(static_cast<int64_t>(1))); in TEST_F() 35 list.push_back(MakeValue(static_cast<int64_t>(2))); in TEST_F() 36 ASSERT_EQ(ScalarAdd(list)->cast<Int64ImmPtr>()->value(), 3); in TEST_F() 37 list.clear(); in TEST_F() 39 list.push_back(MakeValue(1.0f)); in TEST_F() 40 list.push_back(MakeValue(1.5f)); in TEST_F() 41 ASSERT_EQ(ScalarAdd(list)->cast<FP32ImmPtr>()->value(), 2.5f); in TEST_F() 42 list.clear(); in TEST_F() 44 list.push_back(MakeValue(3.0)); in TEST_F() [all …]
|
/third_party/iowow/src/utils/ |
D | iwarr.c | 180 iwrc iwulist_init(IWULIST *list, size_t initial_length, size_t unit_size) { in iwulist_init() argument 181 list->usize = unit_size; in iwulist_init() 182 list->num = 0; in iwulist_init() 183 list->start = 0; in iwulist_init() 187 list->anum = initial_length; in iwulist_init() 188 list->array = malloc(unit_size * initial_length); in iwulist_init() 189 if (!list->array) { in iwulist_init() 196 IWULIST *list = malloc(sizeof(*list)); in iwulist_create() local 197 if (!list) { in iwulist_create() 200 if (iwulist_init(list, initial_length, unit_size)) { in iwulist_create() [all …]
|
/third_party/glib/glib/ |
D | glist.c | 157 #define _g_list_free1(list) g_slice_free (GList, list) argument 192 g_list_free (GList *list) in g_list_free() argument 194 g_slice_free_chain (GList, list, next); in g_list_free() 213 g_list_free_1 (GList *list) in g_list_free_1() argument 215 _g_list_free1 (list); in g_list_free_1() 241 g_list_free_full (GList *list, in g_list_free_full() argument 244 g_list_foreach (list, (GFunc) free_func, NULL); in g_list_free_full() 245 g_list_free (list); in g_list_free_full() 279 g_list_append (GList *list, in g_list_append() argument 289 if (list) in g_list_append() [all …]
|
D | gslist.c | 147 g_slist_free (GSList *list) in g_slist_free() argument 149 g_slice_free_chain (GSList, list, next); in g_slist_free() 167 g_slist_free_1 (GSList *list) in g_slist_free_1() argument 169 _g_slist_free1 (list); in g_slist_free_1() 195 g_slist_free_full (GSList *list, in g_slist_free_full() argument 198 g_slist_foreach (list, (GFunc) free_func, NULL); in g_slist_free_full() 199 g_slist_free (list); in g_slist_free_full() 233 g_slist_append (GSList *list, in g_slist_append() argument 243 if (list) in g_slist_append() 245 last = g_slist_last (list); in g_slist_append() [all …]
|
/third_party/boost/libs/hana/test/_include/laws/ |
D | monad_plus.hpp | 127 constexpr auto list = make<S>; member 133 hana::empty<S>(), list() 140 concat(list(), list()), 141 list() 144 concat(list(), list(eq<0>{})), 145 list(eq<0>{}) 148 concat(list(), list(eq<0>{}, eq<1>{})), 149 list(eq<0>{}, eq<1>{}) 153 concat(list(eq<0>{}), list()), 154 list(eq<0>{}) [all …]
|
D | searchable.hpp | 166 constexpr auto list = make<S>; member 179 hana::not_(hana::any_of(list(), equal.to(x<9>{}))) 183 hana::not_(hana::any_of(list(x<0>{}), equal.to(x<9>{}))) 186 hana::any_of(list(x<0>{}), equal.to(x<0>{})) 189 hana::any_of(list(x<0>{}, invalid<1>{}), equal.to(x<0>{})) 192 hana::any_of(list(x<0>{}, invalid<1>{}, invalid<2>{}), equal.to(x<0>{})) 196 hana::not_(hana::any_of(list(x<0>{}, x<1>{}), equal.to(x<9>{}))) 199 hana::any_of(list(x<0>{}, x<1>{}), equal.to(x<1>{})) 202 hana::any_of(list(x<0>{}, x<1>{}, invalid<2>{}), equal.to(x<1>{})) 205 hana::any_of(list(x<0>{}, x<1>{}, invalid<2>{}, invalid<3>{}), equal.to(x<1>{})) [all …]
|
/third_party/gettext/libtextstyle/gnulib-local/lib/glib/ |
D | glist.c | 59 #define _g_list_free1(list) g_slice_free (GList, list) argument 72 g_list_free (GList *list) in g_list_free() argument 74 while (list) in g_list_free() 76 GList *n = list->next; in g_list_free() 77 g_slice_free (GList, list); in g_list_free() 78 list = n; in g_list_free() 85 g_list_free_1 (GList *list) 87 _g_list_free1 (list); 93 g_list_append (GList *list, in g_list_append() argument 103 if (list) in g_list_append() [all …]
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ProtobufArrayListTest.java | 48 private ProtobufArrayList<Integer> list; field in ProtobufArrayListTest 52 list = new ProtobufArrayList<Integer>(); in setUp() 64 list.addAll(asList(1, 2, 3, 4)); in testModificationWithIteration() 65 Iterator<Integer> iterator = list.iterator(); in testModificationWithIteration() 66 assertEquals(4, list.size()); in testModificationWithIteration() 67 assertEquals(1, (int) list.get(0)); in testModificationWithIteration() 70 list.remove(0); in testModificationWithIteration() 78 iterator = list.iterator(); in testModificationWithIteration() 79 list.set(0, 1); in testModificationWithIteration() 87 iterator = list.iterator(); in testModificationWithIteration() [all …]
|
D | FloatArrayListTest.java | 51 private FloatArrayList list; field in FloatArrayListTest 55 list = new FloatArrayList(); in setUp() 67 list.addFloat(3); in testMakeImmutable() 68 list.addFloat(4); in testMakeImmutable() 69 list.addFloat(5); in testMakeImmutable() 70 list.addFloat(7); in testMakeImmutable() 71 list.makeImmutable(); in testMakeImmutable() 72 assertImmutable(list); in testMakeImmutable() 76 list.addAll(asList(1F, 2F, 3F, 4F)); in testModificationWithIteration() 77 Iterator<Float> iterator = list.iterator(); in testModificationWithIteration() [all …]
|
D | DoubleArrayListTest.java | 51 private DoubleArrayList list; field in DoubleArrayListTest 55 list = new DoubleArrayList(); in setUp() 67 list.addDouble(3); in testMakeImmutable() 68 list.addDouble(4); in testMakeImmutable() 69 list.addDouble(5); in testMakeImmutable() 70 list.addDouble(7); in testMakeImmutable() 71 list.makeImmutable(); in testMakeImmutable() 72 assertImmutable(list); in testMakeImmutable() 76 list.addAll(asList(1D, 2D, 3D, 4D)); in testModificationWithIteration() 77 Iterator<Double> iterator = list.iterator(); in testModificationWithIteration() [all …]
|
D | LongArrayListTest.java | 51 private LongArrayList list; field in LongArrayListTest 55 list = new LongArrayList(); in setUp() 67 list.addLong(3); in testMakeImmutable() 68 list.addLong(4); in testMakeImmutable() 69 list.addLong(5); in testMakeImmutable() 70 list.addLong(7); in testMakeImmutable() 71 list.makeImmutable(); in testMakeImmutable() 72 assertImmutable(list); in testMakeImmutable() 76 list.addAll(asList(1L, 2L, 3L, 4L)); in testModificationWithIteration() 77 Iterator<Long> iterator = list.iterator(); in testModificationWithIteration() [all …]
|
D | IntArrayListTest.java | 51 private IntArrayList list; field in IntArrayListTest 55 list = new IntArrayList(); in setUp() 67 list.addInt(3); in testMakeImmutable() 68 list.addInt(4); in testMakeImmutable() 69 list.addInt(5); in testMakeImmutable() 70 list.addInt(7); in testMakeImmutable() 71 list.makeImmutable(); in testMakeImmutable() 72 assertImmutable(list); in testMakeImmutable() 76 list.addAll(asList(1, 2, 3, 4)); in testModificationWithIteration() 77 Iterator<Integer> iterator = list.iterator(); in testModificationWithIteration() [all …]
|
D | BooleanArrayListTest.java | 52 private BooleanArrayList list; field in BooleanArrayListTest 56 list = new BooleanArrayList(); in setUp() 68 list.addBoolean(true); in testMakeImmutable() 69 list.addBoolean(false); in testMakeImmutable() 70 list.addBoolean(true); in testMakeImmutable() 71 list.addBoolean(true); in testMakeImmutable() 72 list.makeImmutable(); in testMakeImmutable() 73 assertImmutable(list); in testMakeImmutable() 77 list.addAll(asList(true, false, true, false)); in testModificationWithIteration() 78 Iterator<Boolean> iterator = list.iterator(); in testModificationWithIteration() [all …]
|
D | LazyStringArrayListTest.java | 58 LazyStringArrayList list = new LazyStringArrayList(); in testJustStrings() local 59 list.add(STRING_A); in testJustStrings() 60 list.add(STRING_B); in testJustStrings() 61 list.add(STRING_C); in testJustStrings() 63 assertEquals(3, list.size()); in testJustStrings() 64 assertSame(STRING_A, list.get(0)); in testJustStrings() 65 assertSame(STRING_B, list.get(1)); in testJustStrings() 66 assertSame(STRING_C, list.get(2)); in testJustStrings() 68 list.set(1, STRING_C); in testJustStrings() 69 assertSame(STRING_C, list.get(1)); in testJustStrings() [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstbufferlist.c | 48 #define GST_BUFFER_LIST_IS_USING_DYNAMIC_ARRAY(list) \ argument 49 ((list)->buffers != &(list)->arr[0]) 83 _gst_buffer_list_copy (GstBufferList * list) in _gst_buffer_list_copy() argument 88 len = list->n_buffers; in _gst_buffer_list_copy() 89 copy = gst_buffer_list_new_sized (list->n_allocated); in _gst_buffer_list_copy() 93 copy->buffers[i] = gst_buffer_ref (list->buffers[i]); in _gst_buffer_list_copy() 104 _gst_buffer_list_free (GstBufferList * list) in _gst_buffer_list_free() argument 109 GST_LOG ("free %p", list); in _gst_buffer_list_free() 112 len = list->n_buffers; in _gst_buffer_list_free() 114 gst_mini_object_remove_parent (GST_MINI_OBJECT_CAST (list->buffers[i]), in _gst_buffer_list_free() [all …]
|
/third_party/parse5/packages/parse5/test/ |
D | formatting-element-list.test.js | 14 const list = new FormattingElementList(treeAdapter); 16 list.insertMarker(); 17 assert.strictEqual(list.length, 1); 18 assert.strictEqual(list.entries[0].type, FormattingElementList.MARKER_ENTRY); 20 list.insertMarker(); 21 assert.strictEqual(list.length, 2); 22 assert.strictEqual(list.entries[1].type, FormattingElementList.MARKER_ENTRY); 26 const list = new FormattingElementList(treeAdapter); 32 list.pushElement(element1, element1Token); 33 assert.strictEqual(list.length, 1); [all …]
|
/third_party/gettext/gettext-tools/src/ |
D | format-lisp.c | 40 #define VERIFY_LIST(list) verify_list (list) argument 78 struct format_arg_list *list; /* For FAT_LIST: List elements. */ member 109 struct format_arg_list *list; member 132 static void verify_list (const struct format_arg_list *list); 133 static void free_list (struct format_arg_list *list); 134 static struct format_arg_list * copy_list (const struct format_arg_list *list); 141 (struct format_arg_list *list); 155 verify_list (e->list); in verify_element() 161 verify_list (const struct format_arg_list *list) in verify_list() argument 166 ASSERT (list->initial.count <= list->initial.allocated); in verify_list() [all …]
|
D | format-scheme.c | 41 #define VERIFY_LIST(list) verify_list (list) argument 80 struct format_arg_list *list; /* For FAT_LIST: List elements. */ member 111 struct format_arg_list *list; member 134 static void verify_list (const struct format_arg_list *list); 135 static void free_list (struct format_arg_list *list); 136 static struct format_arg_list * copy_list (const struct format_arg_list *list); 143 (struct format_arg_list *list); 157 verify_list (e->list); in verify_element() 163 verify_list (const struct format_arg_list *list) in verify_list() argument 168 ASSERT (list->initial.count <= list->initial.allocated); in verify_list() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | LinkedListTests.cpp | 61 void ExpectListContentsForDirection(const LinkedList<Node>& list, in ExpectListContentsForDirection() argument 66 for (const LinkNode<Node>* node = (forward ? list.head() : list.tail()); node != list.end(); in ExpectListContentsForDirection() 76 void ExpectListContents(const LinkedList<Node>& list, int num_nodes, const int* node_ids) { in ExpectListContents() argument 79 ExpectListContentsForDirection(list, num_nodes, node_ids, true); in ExpectListContents() 83 ExpectListContentsForDirection(list, num_nodes, node_ids, false); in ExpectListContents() 88 LinkedList<Node> list; in TEST() local 89 EXPECT_EQ(list.end(), list.head()); in TEST() 90 EXPECT_EQ(list.end(), list.tail()); in TEST() 91 ExpectListContents(list, 0, nullptr); in TEST() 95 LinkedList<Node> list; in TEST() local [all …]
|
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 50 var list = new RepeatedField<string>(); in NullValuesRejected() 51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected() 52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected() 53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected() 54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected() 55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected() 61 var list = new RepeatedField<string>(); in Add_SingleItem() 62 list.Add("foo"); in Add_SingleItem() 63 Assert.AreEqual(1, list.Count); in Add_SingleItem() 64 Assert.AreEqual("foo", list[0]); in Add_SingleItem() [all …]
|
/third_party/glib/glib/tests/ |
D | list.c | 29 GList *list = NULL; in test_list_sort() local 33 list = g_list_append (list, GINT_TO_POINTER (array[i])); in test_list_sort() 35 list = g_list_sort (list, sort); in test_list_sort() 40 p1 = g_list_nth_data (list, i); in test_list_sort() 41 p2 = g_list_nth_data (list, i+1); in test_list_sort() 46 g_list_free (list); in test_list_sort() 52 GList *list = NULL; in test_list_sort_with_data() local 56 list = g_list_append (list, GINT_TO_POINTER (array[i])); in test_list_sort_with_data() 58 list = g_list_sort_with_data (list, (GCompareDataFunc)sort, NULL); in test_list_sort_with_data() 63 p1 = g_list_nth_data (list, i); in test_list_sort_with_data() [all …]
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
D | nine_shader.h | 134 nine_shader_variant_get(struct nine_shader_variant *list, in nine_shader_variant_get() argument 139 while (list->key != key && list->next) in nine_shader_variant_get() 140 list = list->next; in nine_shader_variant_get() 141 if (list->key == key) { in nine_shader_variant_get() 142 *const_ranges = list->const_ranges; in nine_shader_variant_get() 143 *const_used_size = list->const_used_size; in nine_shader_variant_get() 144 return list->cso; in nine_shader_variant_get() 150 nine_shader_variant_add(struct nine_shader_variant *list, in nine_shader_variant_add() argument 155 while (list->next) { in nine_shader_variant_add() 156 assert(list->key != key); in nine_shader_variant_add() [all …]
|
/third_party/eudev/src/libudev/ |
D | libudev-list.c | 45 struct udev_list *list; member 52 void udev_list_node_init(struct udev_list_node *list) in udev_list_node_init() argument 54 list->next = list; in udev_list_node_init() 55 list->prev = list; in udev_list_node_init() 58 int udev_list_node_is_empty(struct udev_list_node *list) in udev_list_node_is_empty() argument 60 return list->next == list; in udev_list_node_is_empty() 73 void udev_list_node_append(struct udev_list_node *new, struct udev_list_node *list) in udev_list_node_append() argument 75 udev_list_node_insert_between(new, list->prev, list); in udev_list_node_append() 96 void udev_list_init(struct udev *udev, struct udev_list *list, bool unique) in udev_list_init() argument 98 memzero(list, sizeof(struct udev_list)); in udev_list_init() [all …]
|
/third_party/ltp/tools/sparse/sparse-src/ |
D | ptrlist.c | 43 struct ptr_list *list = head; in ptr_list_size() local 45 nr += list->nr - list->rm; in ptr_list_size() 46 } while ((list = list->next) != head); in ptr_list_size() 57 const struct ptr_list *list = head; in ptr_list_empty() local 63 if (list->nr - list->rm) in ptr_list_empty() 65 } while ((list = list->next) != head); in ptr_list_empty() 76 const struct ptr_list *list = head; in ptr_list_multiple() local 83 nr += list->nr - list->rm; in ptr_list_multiple() 86 } while ((list = list->next) != head); in ptr_list_multiple() 97 struct ptr_list *list = head; in first_ptr_list() local [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 51 var list = new RepeatedField<string>(); in NullValuesRejected() 52 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected() 53 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected() 54 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected() 55 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected() 56 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected() 62 var list = new RepeatedField<string>(); in Add_SingleItem() 63 list.Add("foo"); in Add_SingleItem() 64 Assert.AreEqual(1, list.Count); in Add_SingleItem() 65 Assert.AreEqual("foo", list[0]); in Add_SingleItem() [all …]
|