| 2850 | } cbm_variant_ref_t; |
| 2851 | |
| 2852 | static int cbm_variant_ref_cmp(const void *pa, const void *pb) { |
| 2853 | const cbm_variant_ref_t *a = (const cbm_variant_ref_t *)pa; |
| 2854 | const cbm_variant_ref_t *b = (const cbm_variant_ref_t *)pb; |
| 2855 | if (a->key != b->key) { |
| 2856 | return a->key < b->key ? -1 : 1; |
| 2857 | } |
| 2858 | if (a->start != b->start) { |
| 2859 | return a->start < b->start ? -1 : 1; |
| 2860 | } |
| 2861 | if (a->end != b->end) { |
| 2862 | return a->end < b->end ? -1 : 1; |
| 2863 | } |
| 2864 | return (a->idx > b->idx) - (a->idx < b->idx); |
| 2865 | } |
| 2866 | |
| 2867 | /* FNV-1a over the QN, a separator and the label. */ |
| 2868 | static uint64_t cbm_variant_key(const char *qn, const char *label) { |
nothing calls this directly
no outgoing calls
no test coverage detected