Home
last modified time | relevance | path

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

12345678910>>...146

/netbsd-src/external/bsd/unbound/dist/util/storage/
H A Dlruhash.c67 struct lruhash* table = (struct lruhash*)calloc(1, in lruhash_create() local
69 if(!table) in lruhash_create()
71 lock_quick_init(&table->lock); in lruhash_create()
72 table->sizefunc = sizefunc; in lruhash_create()
73 table->compfunc = compfunc; in lruhash_create()
74 table->delkeyfunc = delkeyfunc; in lruhash_create()
75 table->deldatafunc = deldatafunc; in lruhash_create()
76 table->cb_arg = arg; in lruhash_create()
77 table->size = start_size; in lruhash_create()
78 table->size_mask = (int)(start_size-1); in lruhash_create()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/
H A Drtbl.c72 rtbl_set_flags (rtbl_t table, unsigned int flags) in rtbl_set_flags() argument
74 table->flags = flags; in rtbl_set_flags()
78 rtbl_get_flags (rtbl_t table) in rtbl_get_flags() argument
80 return table->flags; in rtbl_get_flags()
84 rtbl_get_column_by_id (rtbl_t table, unsigned int id) in rtbl_get_column_by_id() argument
87 for(i = 0; i < table->num_columns; i++) in rtbl_get_column_by_id()
88 if(table->columns[i]->column_id == id) in rtbl_get_column_by_id()
89 return table->columns[i]; in rtbl_get_column_by_id()
94 rtbl_get_column (rtbl_t table, const char *column) in rtbl_get_column() argument
97 for(i = 0; i < table->num_columns; i++) in rtbl_get_column()
[all …]
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dunitlruhash.c81 test_bin_find_entry(struct lruhash* table) in test_bin_find_entry() argument
97 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == NULL ); in test_bin_find_entry()
105 unit_assert( bin_find_entry(table, &bin, myhash(13), k, NULL) == NULL ); in test_bin_find_entry()
109 unit_assert( bin_find_entry(table, &bin, h, k2, NULL) == NULL ); in test_bin_find_entry()
112 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == &k->entry ); in test_bin_find_entry()
118 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == NULL ); in test_bin_find_entry()
130 unit_assert( bin_find_entry(table, &bin, myhash(13), k, NULL) == NULL ); in test_bin_find_entry()
134 unit_assert( bin_find_entry(table, &bin, h, k2, NULL) == NULL ); in test_bin_find_entry()
137 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == &k->entry ); in test_bin_find_entry()
140 unit_assert( bin_find_entry(table, &bin, k4->entry.hash, k4, NULL) in test_bin_find_entry()
[all …]
H A Dunitslabhash.c83 test_short_table(struct slabhash* table) in test_short_table() argument
93 slabhash_insert(table, myhash(12), &k->entry, d, NULL); in test_short_table()
94 slabhash_insert(table, myhash(14), &k2->entry, d2, NULL); in test_short_table()
96 unit_assert( slabhash_lookup(table, myhash(12), k, 0) == &k->entry); in test_short_table()
98 unit_assert( slabhash_lookup(table, myhash(14), k2, 0) == &k2->entry); in test_short_table()
100 slabhash_remove(table, myhash(12), k); in test_short_table()
101 slabhash_remove(table, myhash(14), k2); in test_short_table()
109 testadd(struct slabhash* table, testdata_type* ref[]) in testadd() argument
115 slabhash_insert(table, myhash(numtoadd), &key->entry, data, NULL); in testadd()
121 testremove(struct slabhash* table, testdata_type* ref[]) in testremove() argument
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Dhash.c368 bfd_hash_table_init_n (struct bfd_hash_table *table, in bfd_hash_table_init_n() argument
385 table->memory = (void *) objalloc_create (); in bfd_hash_table_init_n()
386 if (table->memory == NULL) in bfd_hash_table_init_n()
391 table->table = (struct bfd_hash_entry **) in bfd_hash_table_init_n()
392 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n()
393 if (table->table == NULL) in bfd_hash_table_init_n()
395 bfd_hash_table_free (table); in bfd_hash_table_init_n()
399 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n()
400 table->size = size; in bfd_hash_table_init_n()
401 table->entsize = entsize; in bfd_hash_table_init_n()
[all …]
/netbsd-src/external/mit/isl/dist/
H A Disl_hash.c42 int isl_hash_table_init(struct isl_ctx *ctx, struct isl_hash_table *table, in isl_hash_table_init() argument
47 if (!table) in isl_hash_table_init()
52 table->bits = ffs(round_up(4 * (min_size + 1) / 3 - 1)) - 1; in isl_hash_table_init()
53 table->n = 0; in isl_hash_table_init()
55 size = 1 << table->bits; in isl_hash_table_init()
56 table->entries = isl_calloc_array(ctx, struct isl_hash_table_entry, in isl_hash_table_init()
58 if (!table->entries) in isl_hash_table_init()
78 static int grow_table(struct isl_ctx *ctx, struct isl_hash_table *table) in grow_table() argument
85 entries = table->entries; in grow_table()
86 old_size = 1 << table->bits; in grow_table()
[all …]
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Dhash.c424 bfd_hash_table_init_n (struct bfd_hash_table *table, in bfd_hash_table_init_n() argument
441 table->memory = (void *) objalloc_create (); in bfd_hash_table_init_n()
442 if (table->memory == NULL) in bfd_hash_table_init_n()
447 table->table = (struct bfd_hash_entry **) in bfd_hash_table_init_n()
448 objalloc_alloc ((struct objalloc *) table->memory, alloc); in bfd_hash_table_init_n()
449 if (table->table == NULL) in bfd_hash_table_init_n()
451 bfd_hash_table_free (table); in bfd_hash_table_init_n()
455 memset ((void *) table->table, 0, alloc); in bfd_hash_table_init_n()
456 table->size = size; in bfd_hash_table_init_n()
457 table->entsize = entsize; in bfd_hash_table_init_n()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Dbinhash.c176 #define binhash_link(table, elm) { \ argument
177 BINHASH_INFO **_h = table->data + binhash_hash(elm->key, elm->key_len, table->size);\
182 table->used++; \
187 static void binhash_size(BINHASH *table, size_t size) in binhash_size() argument
193 table->data = h = (BINHASH_INFO **) mymalloc(size * sizeof(BINHASH_INFO *)); in binhash_size()
194 table->size = size; in binhash_size()
195 table->used = 0; in binhash_size()
205 BINHASH *table; in binhash_create() local
207 table = (BINHASH *) mymalloc(sizeof(BINHASH)); in binhash_create()
208 binhash_size(table, size < 13 ? 13 : size); in binhash_create()
[all …]
H A Dhtable.c169 #define htable_link(table, element) { \ argument
170 HTABLE_INFO **_h = table->data + htable_hash(element->key, table->size);\
175 table->used++; \
180 static void htable_size(HTABLE *table, size_t size) in htable_size() argument
186 table->data = h = (HTABLE_INFO **) mymalloc(size * sizeof(HTABLE_INFO *)); in htable_size()
187 table->size = size; in htable_size()
188 table->used = 0; in htable_size()
198 HTABLE *table; in htable_create() local
200 table = (HTABLE *) mymalloc(sizeof(HTABLE)); in htable_create()
201 htable_size(table, size < 13 ? 13 : size); in htable_create()
[all …]
/netbsd-src/external/bsd/kyua-cli/dist/utils/text/
H A Dtable_test.cpp58 const text::table& table) in table_formatter_check() argument
60 ATF_REQUIRE_EQ(expected, text::join(formatter.format(table), "\n") + "\n"); in table_formatter_check()
68 ATF_REQUIRE_EQ(5, text::table(5).ncolumns()); in ATF_TEST_CASE_BODY()
69 ATF_REQUIRE_EQ(10, text::table(10).ncolumns()); in ATF_TEST_CASE_BODY()
83 text::table table(2); in ATF_TEST_CASE_BODY() local
84 table.add_row(row1); in ATF_TEST_CASE_BODY()
85 table.add_row(row2); in ATF_TEST_CASE_BODY()
87 ATF_REQUIRE_EQ(4, table.column_width(0)); in ATF_TEST_CASE_BODY()
88 ATF_REQUIRE_EQ(8, table.column_width(1)); in ATF_TEST_CASE_BODY()
102 text::table table(2); in ATF_TEST_CASE_BODY() local
[all …]
/netbsd-src/external/gpl3/gcc/dist/libcpp/
H A Dsymtab.cc59 cpp_hash_table *table; in ht_create() local
61 table = XCNEW (cpp_hash_table); in ht_create()
64 obstack_specify_allocation (&table->stack, 0, 0, xmalloc, free); in ht_create()
66 obstack_alignment_mask (&table->stack) = 0; in ht_create()
68 table->entries = XCNEWVEC (hashnode, nslots); in ht_create()
69 table->entries_owned = true; in ht_create()
70 table->nslots = nslots; in ht_create()
71 return table; in ht_create()
77 ht_destroy (cpp_hash_table *table) in ht_destroy() argument
79 obstack_free (&table->stack, NULL); in ht_destroy()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libcpp/
H A Dsymtab.c59 cpp_hash_table *table; in ht_create() local
61 table = XCNEW (cpp_hash_table); in ht_create()
64 obstack_specify_allocation (&table->stack, 0, 0, xmalloc, free); in ht_create()
66 obstack_alignment_mask (&table->stack) = 0; in ht_create()
68 table->entries = XCNEWVEC (hashnode, nslots); in ht_create()
69 table->entries_owned = true; in ht_create()
70 table->nslots = nslots; in ht_create()
71 return table; in ht_create()
77 ht_destroy (cpp_hash_table *table) in ht_destroy() argument
79 obstack_free (&table->stack, NULL); in ht_destroy()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/
H A Dswitch_.d30 int _d_switch_string(char[][] table, char[] ca) in _d_switch_string() argument
34 assert(table.length >= 0); in _d_switch_string()
38 for (size_t j = 1u; j < table.length; j++) in _d_switch_string()
40 auto len1 = table[j - 1].length; in _d_switch_string()
41 auto len2 = table[j].length; in _d_switch_string()
48 ci = memcmp(table[j - 1].ptr, table[j].ptr, len1); in _d_switch_string()
61 for (auto i = 0u; i < table.length; i++) in out()
63 if (table[i].length == ca.length) in out()
64 { cj = memcmp(table[i].ptr, ca.ptr, ca.length); in out()
71 assert(0 <= result && cast(size_t)result < table.length); in out()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gt/
H A Dintel_mocs.c46 const struct drm_i915_mocs_entry *table; member
289 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
292 table->size = ARRAY_SIZE(tgl_mocs_table); in get_mocs_settings()
293 table->table = tgl_mocs_table; in get_mocs_settings()
294 table->n_entries = GEN11_NUM_MOCS_ENTRIES; in get_mocs_settings()
296 table->size = ARRAY_SIZE(icl_mocs_table); in get_mocs_settings()
297 table->table = icl_mocs_table; in get_mocs_settings()
298 table->n_entries = GEN11_NUM_MOCS_ENTRIES; in get_mocs_settings()
300 table->size = ARRAY_SIZE(skl_mocs_table); in get_mocs_settings()
301 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Dhash.c99 htab->table = (hash_entry *) xcalloc (init_size + 1, sizeof (hash_entry)); in hash_init()
112 free (htab->table); in hash_destroy()
154 hash_entry *table = htab->table; in lookup() local
161 if (table[idx].used) in lookup()
163 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
164 && memcmp (table[idx].key, key, keylen) == 0) in lookup()
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
179 && memcmp (table[idx].key, key, keylen) == 0) in lookup()
182 while (table[idx].used); in lookup()
194 hash_entry *table = htab->table; in hash_find_entry() local
[all …]
/netbsd-src/external/gpl2/gettext/dist/gnulib-local/lib/
H A Dhash.c99 htab->table = (hash_entry *) xcalloc (init_size + 1, sizeof (hash_entry)); in hash_init()
112 free (htab->table); in hash_destroy()
154 hash_entry *table = htab->table; in lookup() local
161 if (table[idx].used) in lookup()
163 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
164 && memcmp (table[idx].key, key, keylen) == 0) in lookup()
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
179 && memcmp (table[idx].key, key, keylen) == 0) in lookup()
182 while (table[idx].used); in lookup()
194 hash_entry *table = htab->table; in hash_find_entry() local
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dhash.c99 htab->table = (hash_entry *) xcalloc (init_size + 1, sizeof (hash_entry)); in hash_init()
112 free (htab->table); in hash_destroy()
154 hash_entry *table = htab->table; in lookup() local
161 if (table[idx].used) in lookup()
163 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
164 && memcmp (table[idx].key, key, keylen) == 0) in lookup()
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
179 && memcmp (table[idx].key, key, keylen) == 0) in lookup()
182 while (table[idx].used); in lookup()
194 hash_entry *table = htab->table; in hash_find_entry() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyInstrTable.td16 defm TABLE_GET_#rt : I<(outs rt:$res), (ins table32_op:$table),
17 (outs), (ins table32_op:$table),
19 "table.get\t$res, $table",
20 "table.get\t$table",
23 defm TABLE_SET_#rt : I<(outs), (ins table32_op:$table, I32:$i, rt:$val),
24 (outs), (ins table32_op:$table),
26 "table.set\t$table, $i, $val",
27 "table.set\t$table",
30 defm TABLE_GROW_#rt : I<(outs I32:$sz), (ins table32_op:$table, rt:$val, I32:$n),
31 (outs), (ins table32_op:$table),
[all …]
/netbsd-src/external/mpl/dhcp/dist/omapip/
H A Dhandle.c113 new -> children [0].table = omapi_handle_table; in omapi_object_handle()
144 omapi_handle_table_t *table, in omapi_object_handle_in_table() argument
151 if (table -> first > h || table -> limit <= h) in omapi_object_handle_in_table()
156 if (table -> leafp) { in omapi_object_handle_in_table()
158 (&table -> children [h - table -> first].object, in omapi_object_handle_in_table()
169 scale = (table -> limit - table -> first) / OMAPI_HANDLE_TABLE_SIZE; in omapi_object_handle_in_table()
174 index = (h - table -> first) / scale; in omapi_object_handle_in_table()
175 inner = table -> children [index].table; in omapi_object_handle_in_table()
184 inner -> first = index * scale + table -> first; in omapi_object_handle_in_table()
188 table -> children [index].table = inner; in omapi_object_handle_in_table()
[all …]
/netbsd-src/external/gpl3/gdb.old/dist/sim/ppc/
H A Dgen-idecode.c40 insn_table *table) in lf_print_opcodes() argument
42 if (table != NULL) { in lf_print_opcodes()
44 ASSERT(table->opcode != NULL); in lf_print_opcodes()
46 table->opcode->first, in lf_print_opcodes()
47 table->opcode->last); in lf_print_opcodes()
48 if (table->parent == NULL) break; in lf_print_opcodes()
49 lf_printf(file, "__%d", table->opcode_nr); in lf_print_opcodes()
50 table = table->parent; in lf_print_opcodes()
60 insn_table *table) in lf_print_table_name() argument
63 lf_print_opcodes(file, table); in lf_print_table_name()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr/
H A Damdgpu_vegam_smumgr.c453 SMU75_Discrete_DpmTable *table) in vegam_populate_smc_mvdd_table() argument
463 table->SmioTable2.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_mvdd_table()
466 table->SmioTable2.Pattern[level].Smio = in vegam_populate_smc_mvdd_table()
468 table->Smio[level] |= in vegam_populate_smc_mvdd_table()
471 table->SmioMask2 = data->mvdd_voltage_table.mask_low; in vegam_populate_smc_mvdd_table()
473 table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count); in vegam_populate_smc_mvdd_table()
480 struct SMU75_Discrete_DpmTable *table) in vegam_populate_smc_vddci_table() argument
491 table->SmioTable1.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_vddci_table()
493 table->SmioTable1.Pattern[level].Smio = (uint8_t) level; in vegam_populate_smc_vddci_table()
495 table->Smio[level] |= data->vddci_voltage_table.entries[level].smio_low; in vegam_populate_smc_vddci_table()
[all …]
H A Damdgpu_ci_smumgr.c845 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument
851 table->VddcLevelCount = data->vddc_voltage_table.count; in ci_populate_smc_vddc_table()
852 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table()
855 &(table->VddcLevel[count])); in ci_populate_smc_vddc_table()
860 table->VddcLevel[count].Smio = (uint8_t) count; in ci_populate_smc_vddc_table()
861 table->Smio[count] |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table()
862 table->SmioMaskVddcVid |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table()
864 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table()
868 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in ci_populate_smc_vddc_table()
874 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vdd_ci_table() argument
[all …]
H A Damdgpu_tonga_smumgr.c308 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vddc_table() argument
314 table->VddcLevelCount = data->vddc_voltage_table.count; in tonga_populate_smc_vddc_table()
315 for (count = 0; count < table->VddcLevelCount; count++) { in tonga_populate_smc_vddc_table()
316 table->VddcTable[count] = in tonga_populate_smc_vddc_table()
319 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in tonga_populate_smc_vddc_table()
325 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vdd_gfx_table() argument
331 table->VddGfxLevelCount = data->vddgfx_voltage_table.count; in tonga_populate_smc_vdd_gfx_table()
333 table->VddGfxTable[count] = in tonga_populate_smc_vdd_gfx_table()
336 CONVERT_FROM_HOST_TO_SMC_UL(table->VddGfxLevelCount); in tonga_populate_smc_vdd_gfx_table()
342 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vdd_ci_table() argument
[all …]
/netbsd-src/distrib/utils/more/
H A Dposition.c58 static off_t *table; /* The position table */ variable
85 return (table[where]);
101 table[i-1] = table[i];
102 table[sc_height - 1] = pos;
118 table[i] = table[i-1];
119 table[0] = pos;
127 for (a = 0; a < sc_height && table[a] == NULL_POSITION; a++); in copytable()
129 table[b] = table[a]; in copytable()
130 table[a] = NULL_POSITION; in copytable()
142 if (table == 0) { in pos_clear()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Dmail_conf_raw.c125 void get_mail_conf_raw_table(const CONFIG_RAW_TABLE *table) in get_mail_conf_raw_table() argument
127 while (table->name) { in get_mail_conf_raw_table()
128 if (table->target[0]) in get_mail_conf_raw_table()
129 myfree(table->target[0]); in get_mail_conf_raw_table()
130 table->target[0] = get_mail_conf_raw(table->name, table->defval, in get_mail_conf_raw_table()
131 table->min, table->max); in get_mail_conf_raw_table()
132 table++; in get_mail_conf_raw_table()
138 void get_mail_conf_raw_fn_table(const CONFIG_RAW_FN_TABLE *table) in get_mail_conf_raw_fn_table() argument
140 while (table->name) { in get_mail_conf_raw_fn_table()
141 if (table->target[0]) in get_mail_conf_raw_fn_table()
[all …]

12345678910>>...146