tests: remove qsort

generate_a64_table.py already sorts the buckets by priority so theres no
reason to do it again.

Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
Ronald Caesar
2026-01-18 18:53:58 -04:00
parent c2a26d54d5
commit c4a7afa8f0

View File

@@ -29,14 +29,6 @@ typedef struct
const bal_decoder_instruction_metadata_t *metadata;
} hot_candidate_t;
static int
compare_candidates (const void *a, const void *b)
{
const hot_candidate_t *ca = (const hot_candidate_t *)a;
const hot_candidate_t *cb = (const hot_candidate_t *)b;
return cb->priority - ca->priority;
}
int
main (void)
{
@@ -68,7 +60,6 @@ main (void)
}
candidate_count = bucket->count;
qsort(local_candidates, candidate_count, sizeof(hot_candidate_t), compare_candidates);
}
uint32_t base_instruction = hash_index << DECODER_HASH_SHIFT;