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

Function entry_equals

hashmap.c:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94static inline int entry_equals(const struct hashmap *map,
95 const struct hashmap_entry *e1,
96 const struct hashmap_entry *e2,
97 const void *keydata)
98{
99 return (e1 == e2) ||
100 (e1->hash == e2->hash &&
101 !map->cmpfn(map->cmpfn_data, e1, e2, keydata));
102}
103
104static inline unsigned int bucket(const struct hashmap *map,
105 const struct hashmap_entry *key)

Callers 2

find_entry_ptrFunction · 0.85
hashmap_get_nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected