Lines Matching refs:bundles
365 midgard_bundle *bundles =
366 (midgard_bundle *) block->bundles.data;
368 size_t count = (block->bundles.size / sizeof(midgard_bundle));
371 for (unsigned j = 0; j < bundles[i].instruction_count; ++j) {
372 if (bundles[i].instructions[j] == tag)
389 size_t count = util_dynarray_num_elements(&block->bundles, midgard_bundle);
390 UNUSED void *unused = util_dynarray_grow(&block->bundles, midgard_bundle, 1);
392 midgard_bundle *bundles = (midgard_bundle *) block->bundles.data;
393 memmove(bundles + before + 1, bundles + before, (count - before) * sizeof(midgard_bundle));
394 midgard_bundle *before_bundle = bundles + before + 1;
397 memcpy(bundles + before, &new, sizeof(new));
412 /* We need to grow the bundles array to add our new bundle */
413 size_t count = util_dynarray_num_elements(&block->bundles, midgard_bundle);
414 UNUSED void *unused = util_dynarray_grow(&block->bundles, midgard_bundle, 1);
419 /* All the bundles after that one, we move ahead by one */
420 midgard_bundle *bundles = (midgard_bundle *) block->bundles.data;
421 memmove(bundles + after + 2, bundles + after + 1, (count - after - 1) * sizeof(midgard_bundle));
422 midgard_bundle *after_bundle = bundles + after;
425 memcpy(bundles + after + 1, &new, sizeof(new));