1105 return dist1 - dist0; |
1105 return dist1 - dist0; |
1106 } |
1106 } |
1107 |
1107 |
1108 //------------------------------trace_frequency_order-------------------------- |
1108 //------------------------------trace_frequency_order-------------------------- |
1109 // Comparison function for edges |
1109 // Comparison function for edges |
1110 static int trace_frequency_order(const void *p0, const void *p1) { |
1110 extern "C" int trace_frequency_order(const void *p0, const void *p1) { |
1111 Trace *tr0 = *(Trace **) p0; |
1111 Trace *tr0 = *(Trace **) p0; |
1112 Trace *tr1 = *(Trace **) p1; |
1112 Trace *tr1 = *(Trace **) p1; |
1113 Block *b0 = tr0->first_block(); |
1113 Block *b0 = tr0->first_block(); |
1114 Block *b1 = tr1->first_block(); |
1114 Block *b1 = tr1->first_block(); |
1115 |
1115 |