Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 4027) sorted by relevance

12345678910>>...162

/netbsd/external/bsd/unbound/dist/util/storage/
H A Dlruhash.c90 bin_init(table->array, table->size); in lruhash_create()
91 lock_protect(&table->lock, table, sizeof(*table)); in lruhash_create()
92 lock_protect(&table->lock, table->array, in lruhash_create()
111 (*table->deldatafunc)(d, table->cb_arg); in bin_delete()
161 bin_delete(table, &table->array[i]); in lruhash_delete()
188 while(table->num > 1 && table->space_used > table->space_max) { in reclaim_space()
339 if(table->space_used > table->space_max) in lruhash_insert()
341 if(table->num >= table->size) in lruhash_insert()
449 bin_clear(table, &table->array[i]); in lruhash_clear()
466 (unsigned)(table->num? table->space_used/table->num : 0), in lruhash_status()
[all …]
/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/
H A Drtbl.c74 table->flags = flags; in rtbl_set_flags()
80 return table->flags; in rtbl_get_flags()
121 free (table->columns); in rtbl_destroy()
122 free (table); in rtbl_destroy()
131 tmp = realloc (table->columns, (table->num_columns + 1) * sizeof (*tmp)); in rtbl_add_column_by_id()
134 table->columns = tmp; in rtbl_add_column_by_id()
150 table->columns[table->num_columns++] = col; in rtbl_add_column_by_id()
383 column_compute_width (table, table->columns[i]); in rtbl_format_pretty()
506 rtbl_t table; in main() local
546 rtbl_new_row(table); in main()
[all …]
/netbsd/external/bsd/unbound/dist/testcode/
H A Dunitlruhash.c168 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
170 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
178 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
201 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
282 unit_assert( table->num <= table->size); in check_table()
283 unit_assert( table->size_mask == (int)table->size-1 ); in check_table()
284 unit_assert( (table->lru_start && table->lru_end) || in check_table()
285 (!table->lru_start && !table->lru_end) ); in check_table()
286 unit_assert( table->space_used <= table->space_max ); in check_table()
470 t[i].table = table; in test_threaded_table()
[all …]
H A Dunitslabhash.c156 unit_assert( table->num <= table->size); in check_lru_table()
157 unit_assert( table->size_mask == (int)table->size-1 ); in check_lru_table()
158 unit_assert( (table->lru_start && table->lru_end) || in check_lru_table()
159 (!table->lru_start && !table->lru_end) ); in check_lru_table()
160 unit_assert( table->space_used <= table->space_max ); in check_lru_table()
162 if(table->lru_start) in check_lru_table()
164 if(table->lru_end) in check_lru_table()
166 p = table->lru_start; in check_lru_table()
274 check_table(table); in test_long_table()
295 check_table(table); in test_long_table()
[all …]
/netbsd/external/gpl3/gdb/dist/bfd/
H A Dhash.c393 if (table->table == NULL) in bfd_hash_table_init_n()
470 for (hashp = table->table[_index]; in bfd_hash_lookup()
516 hashp->next = table->table[_index]; in bfd_hash_insert()
517 table->table[_index] = hashp; in bfd_hash_insert()
520 if (!table->frozen && table->count > table->size * 3 / 4) in bfd_hash_insert()
545 while (table->table[hi]) in bfd_hash_insert()
558 table->table = newtable; in bfd_hash_insert()
586 ent->next = table->table[_index]; in bfd_hash_rename()
587 table->table[_index] = ent; in bfd_hash_rename()
601 for (pph = &table->table[_index]; in bfd_hash_replace()
[all …]
/netbsd/external/gpl3/binutils.old/dist/bfd/
H A Dhash.c393 if (table->table == NULL) in bfd_hash_table_init_n()
470 for (hashp = table->table[_index]; in bfd_hash_lookup()
516 hashp->next = table->table[_index]; in bfd_hash_insert()
517 table->table[_index] = hashp; in bfd_hash_insert()
520 if (!table->frozen && table->count > table->size * 3 / 4) in bfd_hash_insert()
545 while (table->table[hi]) in bfd_hash_insert()
558 table->table = newtable; in bfd_hash_insert()
586 ent->next = table->table[_index]; in bfd_hash_rename()
587 table->table[_index] = ent; in bfd_hash_rename()
601 for (pph = &table->table[_index]; in bfd_hash_replace()
[all …]
/netbsd/external/gpl3/binutils/dist/bfd/
H A Dhash.c393 if (table->table == NULL) in bfd_hash_table_init_n()
470 for (hashp = table->table[_index]; in bfd_hash_lookup()
516 hashp->next = table->table[_index]; in bfd_hash_insert()
517 table->table[_index] = hashp; in bfd_hash_insert()
520 if (!table->frozen && table->count > table->size * 3 / 4) in bfd_hash_insert()
545 while (table->table[hi]) in bfd_hash_insert()
558 table->table = newtable; in bfd_hash_insert()
586 ent->next = table->table[_index]; in bfd_hash_rename()
587 table->table[_index] = ent; in bfd_hash_rename()
601 for (pph = &table->table[_index]; in bfd_hash_replace()
[all …]
/netbsd/external/gpl3/gdb.old/dist/bfd/
H A Dhash.c393 if (table->table == NULL) in bfd_hash_table_init_n()
470 for (hashp = table->table[_index]; in bfd_hash_lookup()
516 hashp->next = table->table[_index]; in bfd_hash_insert()
517 table->table[_index] = hashp; in bfd_hash_insert()
520 if (!table->frozen && table->count > table->size * 3 / 4) in bfd_hash_insert()
545 while (table->table[hi]) in bfd_hash_insert()
558 table->table = newtable; in bfd_hash_insert()
586 ent->next = table->table[_index]; in bfd_hash_rename()
587 table->table[_index] = ent; in bfd_hash_rename()
601 for (pph = &table->table[_index]; in bfd_hash_replace()
[all …]
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dbinhash.c205 BINHASH *table; in binhash_create() local
209 table->seq_bucket = table->seq_element = 0; in binhash_create()
210 return (table); in binhash_create()
240 if (table->used >= table->size) in binhash_enter()
294 table->used--; in binhash_delete()
326 table->data = 0; in binhash_free()
352 BINHASH *table; in binhash_list()
382 table->seq_bucket = binhash_list(table); in binhash_sequence()
383 table->seq_element = table->seq_bucket; in binhash_sequence()
386 if (table->seq_element && *table->seq_element) in binhash_sequence()
[all …]
H A Dhtable.c202 table->seq_bucket = table->seq_element = 0; in htable_create()
233 if (table->used >= table->size) in htable_enter()
250 if (table) in htable_find()
265 if (table) in htable_locate()
276 if (table) { in htable_delete()
290 table->used--; in htable_delete()
306 if (table) { in htable_free()
377 table->seq_bucket = htable_list(table); in htable_sequence()
378 table->seq_element = table->seq_bucket; in htable_sequence()
381 if (table->seq_element && *table->seq_element) in htable_sequence()
[all …]
/netbsd/external/bsd/kyua-cli/dist/utils/text/
H A Dtable_test.cpp83 text::table table(2); in ATF_TEST_CASE_BODY() local
102 text::table table(2); in ATF_TEST_CASE_BODY() local
114 text::table table(2); in ATF_TEST_CASE_BODY() local
129 text::table table(1); in ATF_TEST_CASE_BODY() local
157 text::table table(3); in ATF_TEST_CASE_BODY() local
183 text::table table(1); in ATF_TEST_CASE_BODY() local
205 text::table table(1); in ATF_TEST_CASE_BODY() local
228 text::table table(1); in ATF_TEST_CASE_BODY() local
251 text::table table(3); in ATF_TEST_CASE_BODY() local
277 text::table table(3); in ATF_TEST_CASE_BODY() local
[all …]
/netbsd/external/gpl3/gcc/dist/libcpp/
H A Dsymtab.c71 return table; in ht_create()
82 free (table); in ht_destroy()
111 table->searches++; in ht_lookup_with_hash()
155 node = (*table->alloc_node) (table); in ht_lookup_with_hash()
172 if (++table->nelements * 4 >= table->nslots * 3) in ht_lookup_with_hash()
174 ht_expand (table); in ht_lookup_with_hash()
191 p = table->entries; in ht_expand()
228 p = table->entries; in ht_forall()
246 p = table->entries; in ht_purge()
289 p = table->entries; in ht_dump_statistics()
[all …]
H A Dsymtab.cc71 return table; in ht_create()
82 free (table); in ht_destroy()
111 table->searches++; in ht_lookup_with_hash()
155 node = (*table->alloc_node) (table); in ht_lookup_with_hash()
172 if (++table->nelements * 4 >= table->nslots * 3) in ht_lookup_with_hash()
174 ht_expand (table); in ht_lookup_with_hash()
191 p = table->entries; in ht_expand()
228 p = table->entries; in ht_forall()
246 p = table->entries; in ht_purge()
289 p = table->entries; in ht_dump_statistics()
[all …]
/netbsd/external/gpl3/gcc.old/dist/libcpp/
H A Dsymtab.c71 return table; in ht_create()
82 free (table); in ht_destroy()
111 table->searches++; in ht_lookup_with_hash()
155 node = (*table->alloc_node) (table); in ht_lookup_with_hash()
172 if (++table->nelements * 4 >= table->nslots * 3) in ht_lookup_with_hash()
174 ht_expand (table); in ht_lookup_with_hash()
191 p = table->entries; in ht_expand()
228 p = table->entries; in ht_forall()
246 p = table->entries; in ht_purge()
289 p = table->entries; in ht_dump_statistics()
[all …]
/netbsd/external/bsd/wpa/dist/src/utils/
H A Deloop.c129 if (table == NULL || table->table == NULL) in eloop_trace_sock_add_ref()
143 if (table == NULL || table->table == NULL) in eloop_trace_sock_remove_ref()
366 table->table = tmp; in eloop_sock_table_add_sock()
390 if (table == NULL || table->table == NULL || table->count == 0) in eloop_sock_table_remove_sock()
401 os_memmove(&table->table[i], &table->table[i + 1], in eloop_sock_table_remove_sock()
525 if (!table || !table->table) in eloop_sock_table_dispatch_table()
538 table->table[i].handler(table->table[i].sock, in eloop_sock_table_dispatch_table()
594 if (table == NULL || table->table == NULL) in eloop_sock_table_dispatch()
600 table->table[i].handler(table->table[i].sock, in eloop_sock_table_dispatch()
622 table->handler(table->sock, table->eloop_data, in eloop_sock_table_dispatch()
[all …]
/netbsd/external/bsd/tmux/dist/
H A Dkey-bindings.c107 return (table); in key_bindings_get_table()
109 table = xmalloc(sizeof *table); in key_bindings_get_table()
117 return (table); in key_bindings_get_table()
151 free(table); in key_bindings_unref_table()
188 struct key_table *table; in key_bindings_add() local
229 struct key_table *table; in key_bindings_remove() local
233 if (table == NULL) in key_bindings_remove()
256 struct key_table *table; in key_bindings_reset() local
260 if (table == NULL) in key_bindings_reset()
292 if (table != NULL) { in key_bindings_remove_table()
[all …]
/netbsd/external/gpl3/gcc/dist/libphobos/libdruntime/rt/
H A Dswitch_.d34 assert(table.length >= 0); in _d_switch_string()
48 ci = memcmp(table[j - 1].ptr, table[j].ptr, len1); in _d_switch_string()
91 size_t high = table.length;
99 auto pca = table[i]; in version()
178 assert(table.length >= 0); in _d_switch_ustring()
192 c = memcmp(table[j - 1].ptr, table[j].ptr, len1 * wchar.sizeof); in _d_switch_ustring()
235 auto high = table.length;
252 auto pca = table[mid];
308 assert(table.length >= 0); in _d_switch_dstring()
320 auto c = memcmp(table[j - 1].ptr, table[j].ptr, len1 * dchar.sizeof); in _d_switch_dstring()
[all …]
/netbsd/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/
H A Dswitch_.d34 assert(table.length >= 0); in _d_switch_string()
48 ci = memcmp(table[j - 1].ptr, table[j].ptr, len1); in _d_switch_string()
91 size_t high = table.length;
99 auto pca = table[i]; in version()
178 assert(table.length >= 0); in _d_switch_ustring()
192 c = memcmp(table[j - 1].ptr, table[j].ptr, len1 * wchar.sizeof); in _d_switch_ustring()
235 auto high = table.length;
252 auto pca = table[mid];
308 assert(table.length >= 0); in _d_switch_dstring()
320 auto c = memcmp(table[j - 1].ptr, table[j].ptr, len1 * dchar.sizeof); in _d_switch_dstring()
[all …]
/netbsd/sys/external/bsd/drm2/dist/drm/i915/gt/
H A Dintel_mocs.c293 table->table = tgl_mocs_table; in get_mocs_settings()
297 table->table = icl_mocs_table; in get_mocs_settings()
302 table->table = skl_mocs_table; in get_mocs_settings()
306 table->table = broxton_mocs_table; in get_mocs_settings()
321 if (GEM_DEBUG_WARN_ON(table->table[i].l3cc_value & in get_mocs_settings()
336 if (index < table->size && table->table[index].used) in get_entry_control()
337 return table->table[index].control_value; in get_entry_control()
339 return table->table[I915_MOCS_PTE].control_value; in get_entry_control()
386 if (index < table->size && table->table[index].used) in get_entry_l3cc()
387 return table->table[index].l3cc_value; in get_entry_l3cc()
[all …]
/netbsd/external/gpl2/gettext/dist/gnulib-local/lib/
H A Dhash.c154 hash_entry *table = htab->table; in lookup() local
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
194 hash_entry *table = htab->table; in hash_find_entry() local
213 hash_entry *table = htab->table; in insert_entry_2() local
223 table[idx].next = &table[idx]; in insert_entry_2()
242 hash_entry *table = htab->table; in resize() local
252 insert_entry_2 (htab, table[idx].key, table[idx].keylen, in resize()
254 lookup (htab, table[idx].key, table[idx].keylen, in resize()
258 free (table); in resize()
272 hash_entry *table = htab->table; in hash_insert_entry() local
[all …]
/netbsd/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Dhash.c154 hash_entry *table = htab->table; in lookup() local
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
194 hash_entry *table = htab->table; in hash_find_entry() local
213 hash_entry *table = htab->table; in insert_entry_2() local
223 table[idx].next = &table[idx]; in insert_entry_2()
242 hash_entry *table = htab->table; in resize() local
252 insert_entry_2 (htab, table[idx].key, table[idx].keylen, in resize()
254 lookup (htab, table[idx].key, table[idx].keylen, in resize()
258 free (table); in resize()
272 hash_entry *table = htab->table; in hash_insert_entry() local
[all …]
/netbsd/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dhash.c154 hash_entry *table = htab->table; in lookup() local
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
194 hash_entry *table = htab->table; in hash_find_entry() local
213 hash_entry *table = htab->table; in insert_entry_2() local
223 table[idx].next = &table[idx]; in insert_entry_2()
242 hash_entry *table = htab->table; in resize() local
252 insert_entry_2 (htab, table[idx].key, table[idx].keylen, in resize()
254 lookup (htab, table[idx].key, table[idx].keylen, in resize()
258 free (table); in resize()
272 hash_entry *table = htab->table; in hash_insert_entry() local
[all …]
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrTable.td19 "table.get\t$res, $table",
20 "table.get\t$table",
26 "table.set\t$table, $i, $val",
27 "table.set\t$table",
33 "table.grow\t$sz, $table, $val, $n",
34 "table.grow\t$table",
40 "table.fill\t$table, $i, $val, $n",
41 "table.fill\t$table",
52 "table.size\t$sz, $table",
53 "table.size\t$table",
[all …]
/netbsd/external/mpl/dhcp/dist/omapip/
H A Dhandle.c151 if (table -> first > h || table -> limit <= h) in omapi_object_handle_in_table()
158 (&table -> children [h - table -> first].object, in omapi_object_handle_in_table()
175 inner = table -> children [index].table; in omapi_object_handle_in_table()
188 table -> children [index].table = inner; in omapi_object_handle_in_table()
194 (&table -> children [index].table)); in omapi_object_handle_in_table()
199 (h, table -> children [index].table, o); in omapi_object_handle_in_table()
239 *table = new; in omapi_handle_table_enclose()
255 if (!table || table->first > h || table->limit <= h) in omapi_handle_lookup_in()
261 if (!table->children[h - table->first].object) in omapi_handle_lookup_in()
264 table->children[h - table->first].object = NULL; in omapi_handle_lookup_in()
[all …]
/netbsd/external/gpl3/gdb/dist/sim/ppc/
H A Dld-insn.c343 table->nr_insn++; in insn_table_insert_insn()
442 return table; in load_insn_table()
459 ASSERT(table != NULL in insn_table_traverse_tree()
470 : (1 << (table->opcode->last - table->opcode->first + 1))); in insn_table_traverse_tree()
698 table->nr_entries++; in insn_table_insert_expanded()
774 || (table->nr_insn == 1 in insn_table_expand_insns()
782 table->opcode = in insn_table_expand_insns()
789 table->opcode_rule = table->opcode_rule->next; in insn_table_expand_insns()
801 table->opcode->parent = table->parent->opcode; in insn_table_expand_insns()
953 dump_insn(table->insns, indent+1, table->nr_insn); in dump_insn_table()
[all …]

12345678910>>...162