Lines Matching defs:sorted
93 MyStaticRec **sorted = assign_inner_blocks(num_static_bb, blocks);
133 qsort(sorted, num_static_bb, sizeof(MyStaticRec*), cmp_dec_elapsed);
140 sorted[ii]->bb.bb_num, sorted[ii]->bb.bb_addr,
141 sorted[ii]->bb.num_insns, sorted[ii]->freq,
142 sorted[ii]->elapsed);
143 int num_insns = sorted[ii]->bb.num_insns;
144 uint32_t addr = sorted[ii]->bb.bb_addr;
146 uint32_t elapsed = sorted[ii]->cycles[jj];
147 uint32_t insn = sorted[ii]->insns[jj];
159 insn2 = sorted[ii]->insns[jj + 1];
181 delete[] sorted;
192 MyStaticRec **sorted = new MyStaticRec*[num_blocks];
194 sorted[ii] = &blocks[ii];
198 qsort(sorted, num_blocks, sizeof(MyStaticRec*), cmp_inc_addr);
204 if (sorted[ii]->is_thumb)
205 num_bytes = sorted[ii]->bb.num_insns << 1;
207 num_bytes = sorted[ii]->bb.num_insns << 2;
208 addr_end = sorted[ii]->bb.bb_addr + num_bytes;
209 if (addr_end > sorted[ii + 1]->bb.bb_addr) {
210 sorted[ii]->inner = sorted[ii + 1];
211 addr_diff = sorted[ii + 1]->bb.bb_addr - sorted[ii]->bb.bb_addr;
213 if (sorted[ii]->is_thumb)
217 sorted[ii]->bb.num_insns = num_insns;
221 return sorted;