Changeset 09ab0a9a in mainline for uspace/lib/c/generic/adt/hash_table.c
- Timestamp:
- 2018-09-13T12:05:53Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/hash_table.c
rb2aaaa0 r09ab0a9a 60 60 #define HT_MAX_LOAD 2 61 61 62 63 62 static size_t round_up_size(size_t); 64 63 static bool alloc_table(size_t, list_t **); … … 73 72 /* no-op */ 74 73 } 75 76 74 77 75 /** Create chained hash table. … … 205 203 } 206 204 207 208 205 /** Insert item into a hash table if not already present. 209 206 * … … 413 410 } 414 411 415 416 412 /** Shrinks the table if the table is only sparely populated. */ 417 413 static inline void shrink_if_needed(hash_table_t *h) … … 473 469 } 474 470 475 476 471 /** @} 477 472 */
Note:
See TracChangeset
for help on using the changeset viewer.