| 72 | } |
| 73 | |
| 74 | static uint64_t cr_hash(const char *s, size_t len) { |
| 75 | uint64_t h = 1469598103934665603ULL; |
| 76 | for (size_t i = 0; i < len; i++) { |
| 77 | h ^= (unsigned char)s[i]; |
| 78 | h *= 1099511628211ULL; |
| 79 | } |
| 80 | return h; |
| 81 | } |
| 82 | |
| 83 | /* Find or insert the slot for s. Never fails: the table is sized from COUNT |
| 84 | * at half load, and the same references are presented again in COPY. */ |