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

Function py_param_hash

internal/cbm/extract_unified.c:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 * suppression -- never a true edge. */
148
149static uint32_t py_param_hash(const char *s) {
150 uint32_t h = 2166136261u; /* FNV-1a */
151 for (const unsigned char *p = (const unsigned char *)s; *p; p++) {
152 h = (h ^ *p) * 16777619u;
153 }
154 return h ? h : 1u; /* 0 marks an empty slot */
155}
156
157static CBMParamSlot *py_param_slot(WalkState *state, const char *name, uint32_t hash) {
158 int mask = state->py_param_slot_capacity - 1;

Callers 3

py_param_bindFunction · 0.85
py_param_unwind_toFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected