MCPcopy Index your code
hub / github.com/git/git / strihash

Function strihash

hashmap.c:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18unsigned int strihash(const char *str)
19{
20 unsigned int c, hash = FNV32_BASE;
21 while ((c = (unsigned char) *str++)) {
22 if (c >= 'a' && c <= 'z')
23 c -= 'a' - 'A';
24 hash = (hash * FNV32_PRIME) ^ c;
25 }
26 return hash;
27}
28
29unsigned int memhash(const void *buf, size_t len)
30{

Callers 6

label_oidFunction · 0.85
make_script_with_mergesFunction · 0.85
fspathhashFunction · 0.85
alloc_test_entryFunction · 0.85
get_test_entryFunction · 0.85
t_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected