MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cr_hash

Function cr_hash

internal/cbm/result_compact.c:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static 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. */

Callers 1

cr_slotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected