| 92 | } |
| 93 | |
| 94 | static 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 | |
| 104 | static inline unsigned int bucket(const struct hashmap *map, |
| 105 | const struct hashmap_entry *key) |
no outgoing calls
no test coverage detected