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

Function sig_fold

src/watcher/watcher.c:636–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634#define SIG_FNV_PRIME 1099511628211ULL
635
636static uint64_t sig_fold(uint64_t h, const void *data, size_t len) {
637 const unsigned char *p = data;
638 for (size_t i = 0; i < len; i++) {
639 h ^= p[i];
640 h *= SIG_FNV_PRIME;
641 }
642 return h;
643}
644
645/* Fold a listed path's (size, mtime) into the signature so an in-place edit
646 * of an already-dirty file still produces a new signature. A failed stat

Callers 3

sig_fold_path_statFunction · 0.85
git_dirty_signatureFunction · 0.85
tree_signatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected