FNV-1a over the QN, a separator and the label. */
| 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) { |
| 2869 | uint64_t h = 1469598103934665603ULL; |
| 2870 | for (const char *p = qn; *p; p++) { |
| 2871 | h = (h ^ (unsigned char)*p) * 1099511628211ULL; |
| 2872 | } |
| 2873 | h = (h ^ 0xffU) * 1099511628211ULL; |
| 2874 | for (const char *p = label; *p; p++) { |
| 2875 | h = (h ^ (unsigned char)*p) * 1099511628211ULL; |
| 2876 | } |
| 2877 | return h; |
| 2878 | } |
| 2879 | |
| 2880 | /* refs[0..n) is one (QN, label) group in span order: give every member the |
| 2881 | * list of the group's distinct spans. */ |
no outgoing calls
no test coverage detected