| 642 | } graph_fp_t; |
| 643 | |
| 644 | static uint64_t fp_mix(uint64_t h, const char *s) { |
| 645 | for (const unsigned char *p = (const unsigned char *)(s ? s : "\x01"); *p; p++) { |
| 646 | h = (h ^ *p) * 1099511628211ULL; /* FNV-1a */ |
| 647 | } |
| 648 | return (h ^ 0xffU) * 1099511628211ULL; /* field separator */ |
| 649 | } |
| 650 | |
| 651 | static uint64_t fp_mix_int(uint64_t h, long long v) { |
| 652 | char buf[32]; |
no outgoing calls
no test coverage detected