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

Function sig_fold

src/watcher/watcher.c:490–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488#define SIG_FNV_PRIME 1099511628211ULL
489
490static uint64_t sig_fold(uint64_t h, const void *data, size_t len) {
491 const unsigned char *p = data;
492 for (size_t i = 0; i < len; i++) {
493 h ^= p[i];
494 h *= SIG_FNV_PRIME;
495 }
496 return h;
497}
498
499/* Platform-portable mtime_ns (mirrors pipeline_incremental.c). */
500static int64_t sig_stat_mtime_ns(const struct stat *st) {

Callers 2

sig_fold_path_statFunction · 0.85
git_dirty_signatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected