/dports/archivers/rpm4/rpm-4.16.1.3/tools/ |
H A D | hashtab.c | 185 htab_t htab; in htab_delete() 193 (*htab->del_f) (htab->entries[i]); 196 free (htab); 202 htab_empty (htab) in htab_empty() argument 211 (*htab->del_f) (htab->entries[i]); 213 memset (htab->entries, 0, htab->size * sizeof (void *)); 266 htab->size = higher_prime_number (htab->size * 2); 276 htab->n_elements -= htab->n_deleted; 458 if (slot < htab->entries || slot >= htab->entries + htab->size 509 return htab->n_elements - htab->n_deleted; [all …]
|
/dports/devel/debugedit/DebugEdit-b1e81ec/ |
H A D | hashtab.c | 186 htab_t htab; in htab_delete() 194 (*htab->del_f) (htab->entries[i]); 204 htab_t htab; in htab_empty() 212 (*htab->del_f) (htab->entries[i]); 226 htab_t htab; in find_empty_slot_for_expand() 258 htab_t htab; in htab_expand() 267 htab->size = higher_prime_number (htab->size * 2); 277 htab->n_elements -= htab->n_deleted; 305 htab_t htab; in htab_find_with_hash() 459 if (slot < htab->entries || slot >= htab->entries + htab->size [all …]
|
/dports/devel/dwz/dwz/ |
H A D | hashtab.c | 196 (*htab->del_f) (htab->entries[i]); 199 free (htab); 214 (*htab->del_f) (htab->entries[i]); 216 memset (htab->entries, 0, htab->size * sizeof (void *)); 277 htab->size = higher_prime_number (htab->size * 2); 287 htab->n_elements -= htab->n_deleted; 478 if (slot < htab->entries || slot >= htab->entries + htab->size 529 return htab->n_elements - htab->n_deleted; 542 return (double) htab->collisions / (double) htab->searches; 558 htab->size, htab->n_elements, htab->n_deleted); [all …]
|
/dports/lang/sdcc/sdcc-4.0.0/src/ |
H A D | SDCChasht.c | 58 hTab *htab; in newHashTable() local 68 htab->minKey = htab->size = size; in newHashTable() 85 (*htab)->table = Safe_realloc ((*htab)->table, in hTabAddItemLong() 213 if (!htab || !htab->table) in hTabClearAll() 220 htab->minKey = htab->size; in hTabClearAll() 221 htab->currKey = htab->nItems = htab->maxKey = 0; in hTabClearAll() 350 htab->currItem = htab->table[key]; in hTabFirstItem() 382 htab->currItem = htab->table[key]; in hTabNextItem() 401 if (wk < htab->minKey || wk > htab->maxKey) in hTabFirstItemWK() 404 htab->currItem = htab->table[wk]; in hTabFirstItemWK() [all …]
|
/dports/devel/elfutils/elfutils-0.179/lib/ |
H A D | dynamicsizehash_concurrent.c | 47 size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size); in lookup() 82 size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size); in insert_helper() 255 htab->old_size = htab->size; in resize_master() 256 htab->old_table = htab->table; in resize_master() 258 htab->size = next_prime(htab->size * 2); in resize_master() 259 htab->table = malloc((1 + htab->size) * sizeof(htab->table[0])); in resize_master() 260 assert(htab->table); in resize_master() 285 free(htab->old_table); in resize_master() 358 htab->table = (void *) malloc ((init_size + 1) * sizeof (htab->table[0])); in INIT() 376 FREE(NAME) (NAME *htab) in FREE() [all …]
|
H A D | dynamicsizehash.c | 51 size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size); in lookup() 89 htab->table[idx].next = htab->first; in insert_entry_2() 90 htab->first = &htab->table[idx]; in insert_entry_2() 94 htab->first = htab->table[idx].next = &htab->table[idx]; in insert_entry_2() 97 htab->table[idx].next = htab->first->next; in insert_entry_2() 98 htab->first = htab->first->next = &htab->table[idx]; in insert_entry_2() 107 ++htab->filled; in insert_entry_2() 108 if (100 * htab->filled > 90 * htab->size) in insert_entry_2() 124 htab->size = next_prime (htab->size * 2); in insert_entry_2() 130 htab->table = calloc ((1 + htab->size), sizeof (htab->table[0])); in insert_entry_2() [all …]
|
/dports/x11/babl/babl-0.1.88/babl/ |
H A D | babl-hash-table.c | 40 int hash = htab->hash_func(htab, item); in hash_insert() 51 while ((cursor < (htab->mask + 1)) && (htab->data_table[cursor] != NULL)) in hash_insert() 61 htab->count++; in hash_insert() 120 BablHashTable *htab; in babl_hash_table_init() local 131 htab->count = 0; in babl_hash_table_init() 134 if (htab->mask) in babl_hash_table_init() 141 return htab; in babl_hash_table_init() 148 babl_assert (htab); in babl_hash_table_insert() 151 if (babl_hash_table_size (htab) < htab->count + 1) in babl_hash_table_insert() 152 hash_rehash (htab); in babl_hash_table_insert() [all …]
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/binutils/libiberty/ |
H A D | hashtab.c | 291 (*htab->del_f) (htab->entries[i]); 295 (*htab->free_f) (htab->entries); 296 (*htab->free_f) (htab); 300 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); 301 (*htab->free_with_arg_f) (htab->alloc_arg, htab); 317 (*htab->del_f) (htab->entries[i]); 382 if ((htab->n_elements - htab->n_deleted) * 2 > htab->size 383 || ((htab->n_elements - htab->n_deleted) * 8 < htab->size 399 htab->n_elements -= htab->n_deleted; 593 if (slot < htab->entries || slot >= htab->entries + htab->size [all …]
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/libiberty/ |
H A D | hashtab.c | 291 (*htab->del_f) (htab->entries[i]); 295 (*htab->free_f) (htab->entries); 296 (*htab->free_f) (htab); 300 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); 301 (*htab->free_with_arg_f) (htab->alloc_arg, htab); 317 (*htab->del_f) (htab->entries[i]); 382 if ((htab->n_elements - htab->n_deleted) * 2 > htab->size 383 || ((htab->n_elements - htab->n_deleted) * 8 < htab->size 399 htab->n_elements -= htab->n_deleted; 593 if (slot < htab->entries || slot >= htab->entries + htab->size [all …]
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/binutils/libiberty/ |
H A D | hashtab.c | 291 (*htab->del_f) (htab->entries[i]); 295 (*htab->free_f) (htab->entries); 296 (*htab->free_f) (htab); 300 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); 301 (*htab->free_with_arg_f) (htab->alloc_arg, htab); 317 (*htab->del_f) (htab->entries[i]); 382 if ((htab->n_elements - htab->n_deleted) * 2 > htab->size 383 || ((htab->n_elements - htab->n_deleted) * 8 < htab->size 399 htab->n_elements -= htab->n_deleted; 593 if (slot < htab->entries || slot >= htab->entries + htab->size [all …]
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/libiberty/ |
H A D | hashtab.c | 291 (*htab->del_f) (htab->entries[i]); 295 (*htab->free_f) (htab->entries); 296 (*htab->free_f) (htab); 300 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); 301 (*htab->free_with_arg_f) (htab->alloc_arg, htab); 317 (*htab->del_f) (htab->entries[i]); 382 if ((htab->n_elements - htab->n_deleted) * 2 > htab->size 383 || ((htab->n_elements - htab->n_deleted) * 8 < htab->size 399 htab->n_elements -= htab->n_deleted; 593 if (slot < htab->entries || slot >= htab->entries + htab->size [all …]
|
/dports/lang/gcc48/gcc-4.8.5/libiberty/ |
H A D | hashtab.c | 221 #define htab_size(htab) ((htab)->size) argument 231 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 435 (*htab->free_f) (htab); in htab_delete() 439 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 440 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 465 (*htab->free_f) (htab->entries); in htab_empty() 467 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 469 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 564 htab->n_elements -= htab->n_deleted; in htab_expand() 586 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/devel/avr-gdb/gdb-7.3.1/libiberty/ |
H A D | hashtab.c | 221 #define htab_size(htab) ((htab)->size) argument 231 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 435 (*htab->free_f) (htab); in htab_delete() 439 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 440 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 465 (*htab->free_f) (htab->entries); in htab_empty() 467 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 469 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 564 htab->n_elements -= htab->n_deleted; in htab_expand() 586 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/devel/gdb761/gdb-7.6.1/libiberty/ |
H A D | hashtab.c | 221 #define htab_size(htab) ((htab)->size) argument 231 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 435 (*htab->free_f) (htab); in htab_delete() 439 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 440 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 465 (*htab->free_f) (htab->entries); in htab_empty() 467 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 469 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 564 htab->n_elements -= htab->n_deleted; in htab_expand() 586 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/devel/tig/tig-2.5.4/compat/ |
H A D | hashtab.c | 213 #define htab_size(htab) ((htab)->size) argument 223 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 429 (*htab->free_f) (htab); in htab_delete() 433 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 434 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 459 (*htab->free_f) (htab->entries); in htab_empty() 461 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 463 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 558 htab->n_elements -= htab->n_deleted; in htab_expand() 580 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/devel/mingw32-gcc/gcc-4.8.1/libiberty/ |
H A D | hashtab.c | 221 #define htab_size(htab) ((htab)->size) argument 231 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 435 (*htab->free_f) (htab); in htab_delete() 439 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 440 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 465 (*htab->free_f) (htab->entries); in htab_empty() 467 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 469 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 564 htab->n_elements -= htab->n_deleted; in htab_expand() 586 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/devel/tigcc/tigcc-0.96.b8_10/gnu/binutils-2.16.1/libiberty/ |
H A D | hashtab.c | 226 htab_size (htab) in htab_size() argument 227 htab_t htab; in htab_size() 236 htab_t htab; in htab_elements() 238 return htab->n_elements - htab->n_deleted; 436 (*htab->free_f) (htab); 440 (*htab->free_with_arg_f) (htab->alloc_arg, entries); 441 (*htab->free_with_arg_f) (htab->alloc_arg, htab); 548 htab->n_elements -= htab->n_deleted; 570 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); 756 if (slot < htab->entries || slot >= htab->entries + htab_size (htab) [all …]
|
/dports/lang/gcc12-devel/gcc-12-20211205/libiberty/ |
H A D | hashtab.c | 212 #define htab_size(htab) ((htab)->size) argument 222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 426 (*htab->free_f) (htab); in htab_delete() 430 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 456 (*htab->free_f) (htab->entries); in htab_empty() 458 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 460 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 555 htab->n_elements -= htab->n_deleted; in htab_expand() 577 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/lang/gcc8/gcc-8.5.0/libiberty/ |
H A D | hashtab.c | 212 #define htab_size(htab) ((htab)->size) argument 222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 426 (*htab->free_f) (htab); in htab_delete() 430 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 456 (*htab->free_f) (htab->entries); in htab_empty() 458 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 460 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 555 htab->n_elements -= htab->n_deleted; in htab_expand() 577 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/lang/gcc6-aux/gcc-6-20180516/libiberty/ |
H A D | hashtab.c | 213 #define htab_size(htab) ((htab)->size) argument 223 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 427 (*htab->free_f) (htab); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 432 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 457 (*htab->free_f) (htab->entries); in htab_empty() 459 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 461 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 556 htab->n_elements -= htab->n_deleted; in htab_expand() 578 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/devel/riscv64-none-elf-gcc/gcc-8.4.0/libiberty/ |
H A D | hashtab.c | 212 #define htab_size(htab) ((htab)->size) argument 222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 426 (*htab->free_f) (htab); in htab_delete() 430 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 456 (*htab->free_f) (htab->entries); in htab_empty() 458 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 460 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 555 htab->n_elements -= htab->n_deleted; in htab_expand() 577 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/lang/gnatdroid-binutils-x86/binutils-2.27/libiberty/ |
H A D | hashtab.c | 213 #define htab_size(htab) ((htab)->size) argument 223 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 427 (*htab->free_f) (htab); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 432 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 457 (*htab->free_f) (htab->entries); in htab_empty() 459 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 461 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 556 htab->n_elements -= htab->n_deleted; in htab_expand() 578 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/devel/arm-none-eabi-gcc/gcc-8.4.0/libiberty/ |
H A D | hashtab.c | 212 #define htab_size(htab) ((htab)->size) argument 222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 426 (*htab->free_f) (htab); in htab_delete() 430 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 456 (*htab->free_f) (htab->entries); in htab_empty() 458 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 460 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 555 htab->n_elements -= htab->n_deleted; in htab_expand() 577 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/lang/gcc11/gcc-11.2.0/libiberty/ |
H A D | hashtab.c | 212 #define htab_size(htab) ((htab)->size) argument 222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 426 (*htab->free_f) (htab); in htab_delete() 430 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 456 (*htab->free_f) (htab->entries); in htab_empty() 458 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 460 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 555 htab->n_elements -= htab->n_deleted; in htab_expand() 577 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|
/dports/lang/gcc10/gcc-10.3.0/libiberty/ |
H A D | hashtab.c | 212 #define htab_size(htab) ((htab)->size) argument 222 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument 426 (*htab->free_f) (htab); in htab_delete() 430 (*htab->free_with_arg_f) (htab->alloc_arg, entries); in htab_delete() 431 (*htab->free_with_arg_f) (htab->alloc_arg, htab); in htab_delete() 456 (*htab->free_f) (htab->entries); in htab_empty() 458 (*htab->free_with_arg_f) (htab->alloc_arg, htab->entries); in htab_empty() 460 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty() 555 htab->n_elements -= htab->n_deleted; in htab_expand() 577 (*htab->free_with_arg_f) (htab->alloc_arg, oentries); in htab_expand() [all …]
|