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

Function scope_name_hash

internal/cbm/lsp/scope.c:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static uint32_t scope_name_hash(const char *name) {
53 uint32_t h = 2166136261u; /* FNV-1a */
54 for (const unsigned char *p = (const unsigned char *)name; *p; p++) {
55 h ^= *p;
56 h *= 16777619u;
57 }
58 return h;
59}
60
61/* Place one binding into a table that has room (load kept below 1/2). */
62static void scope_index_place(CBMVarBinding **slots, int cap, CBMVarBinding *b) {

Callers 2

scope_index_placeFunction · 0.85
scope_frame_findFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected