MCPcopy Create free account
hub / github.com/git/git / memhash

Function memhash

hashmap.c:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29unsigned int memhash(const void *buf, size_t len)
30{
31 unsigned int hash = FNV32_BASE;
32 unsigned char *ucbuf = (unsigned char *) buf;
33 while (len--) {
34 unsigned int c = *ucbuf++;
35 hash = (hash * FNV32_PRIME) ^ c;
36 }
37 return hash;
38}
39
40unsigned int memihash(const void *buf, size_t len)
41{

Callers 14

make_remoteFunction · 0.85
find_branchFunction · 0.85
make_branchFunction · 0.85
hash_oid_stringFunction · 0.85
meminternFunction · 0.85
attr_hashmap_getFunction · 0.85
attr_hashmap_addFunction · 0.85
add_watchFunction · 0.85
remove_watchFunction · 0.85
add_dir_renameFunction · 0.85
rename_dirFunction · 0.85
handle_eventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected