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

Function fnv1a64

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

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