Changeset 7f1c620 in mainline for generic/src/adt/hash_table.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/adt/hash_table.c
r991779c5 r7f1c620 65 65 panic("cannot allocate memory for hash table\n"); 66 66 } 67 memsetb(( __address) h->entry, m * sizeof(link_t), 0);67 memsetb((uintptr_t) h->entry, m * sizeof(link_t), 0); 68 68 69 69 for (i = 0; i < m; i++) … … 81 81 * @param item Item to be inserted into the hash table. 82 82 */ 83 void hash_table_insert(hash_table_t *h, __nativekey[], link_t *item)83 void hash_table_insert(hash_table_t *h, unative_t key[], link_t *item) 84 84 { 85 85 index_t chain; … … 101 101 * @return Matching item on success, NULL if there is no such item. 102 102 */ 103 link_t *hash_table_find(hash_table_t *h, __nativekey[])103 link_t *hash_table_find(hash_table_t *h, unative_t key[]) 104 104 { 105 105 link_t *cur; … … 131 131 * @param keys Number of keys in the key array. 132 132 */ 133 void hash_table_remove(hash_table_t *h, __nativekey[], count_t keys)133 void hash_table_remove(hash_table_t *h, unative_t key[], count_t keys) 134 134 { 135 135 index_t chain;
Note:
See TracChangeset
for help on using the changeset viewer.