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

Function strhash

hashmap.c:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#define FNV32_PRIME ((unsigned int) 0x01000193)
9
10unsigned int strhash(const char *str)
11{
12 unsigned int c, hash = FNV32_BASE;
13 while ((c = (unsigned char) *str++))
14 hash = (hash * FNV32_PRIME) ^ c;
15 return hash;
16}
17
18unsigned int strihash(const char *str)
19{

Callers 15

configset_find_elementFunction · 0.85
configset_add_valueFunction · 0.85
populate_worktree_mapFunction · 0.85
get_worktree_pathFunction · 0.85
find_exact_matchesFunction · 0.85
paths_and_oids_insertFunction · 0.85
fspathhashFunction · 0.85
hash_oid_stringFunction · 0.85
find_strmap_entryFunction · 0.85
create_entryFunction · 0.85
strmap_removeFunction · 0.85

Calls

no outgoing calls

Tested by 1

hashFunction · 0.68