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

Function fnv1a64

src/graph_buffer/graph_buffer.c:148–155  ·  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

146
147/* FNV-1a 64-bit over a byte slice — for re-keying oversized local_names. */
148static uint64_t fnv1a64(const char *s, size_t len) {
149 uint64_t h = 14695981039346656037ULL;
150 for (size_t i = 0; i < len; i++) {
151 h ^= (uint8_t)s[i];
152 h *= 1099511628211ULL;
153 }
154 return h;
155}
156
157/* IMPORTS edges carry exactly one imported symbol's local_name (#768): two
158 * 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