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

Function fnv1a64

src/graph_buffer/graph_buffer.c:175–182  ·  view source on GitHub ↗

FNV-1a 64-bit over a byte slice — for re-keying oversized local_names. */

Source from the content-addressed store, hash-verified

173
174/* FNV-1a 64-bit over a byte slice — for re-keying oversized local_names. */
175static uint64_t fnv1a64(const char *s, size_t len) {
176 uint64_t h = 14695981039346656037ULL;
177 for (size_t i = 0; i < len; i++) {
178 h ^= (uint8_t)s[i];
179 h *= 1099511628211ULL;
180 }
181 return h;
182}
183
184/* IMPORTS edges carry exactly one imported symbol's local_name (#768): two
185 * named imports from the same specifier resolve to the same (source,

Callers 1

make_edge_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected