Lines Matching defs:bundles
359 midgard_bundle *bundles =
360 (midgard_bundle *) block->bundles.data;
362 size_t count = (block->bundles.size / sizeof(midgard_bundle));
365 for (unsigned j = 0; j < bundles[i].instruction_count; ++j) {
366 if (bundles[i].instructions[j] == tag)
383 size_t count = util_dynarray_num_elements(&block->bundles, midgard_bundle);
384 UNUSED void *unused = util_dynarray_grow(&block->bundles, midgard_bundle, 1);
386 midgard_bundle *bundles = (midgard_bundle *) block->bundles.data;
387 memmove(bundles + before + 1, bundles + before, (count - before) * sizeof(midgard_bundle));
388 midgard_bundle *before_bundle = bundles + before + 1;
391 memcpy(bundles + before, &new, sizeof(new));
404 /* We need to grow the bundles array to add our new bundle */
405 size_t count = util_dynarray_num_elements(&block->bundles, midgard_bundle);
406 UNUSED void *unused = util_dynarray_grow(&block->bundles, midgard_bundle, 1);
411 /* All the bundles after that one, we move ahead by one */
412 midgard_bundle *bundles = (midgard_bundle *) block->bundles.data;
413 memmove(bundles + after + 2, bundles + after + 1, (count - after - 1) * sizeof(midgard_bundle));
414 midgard_bundle *after_bundle = bundles + after;
417 memcpy(bundles + after + 1, &new, sizeof(new));