Home
last modified time | relevance | path

Searched refs:htab (Results 1 – 16 of 16) sorted by relevance

/external/elfutils/lib/
Ddynamicsizehash.c47 lookup (NAME *htab, HASHTYPE hval, TYPE val __attribute__ ((unused))) in lookup() argument
51 size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size); in lookup()
53 if (htab->table[idx].hashval != 0) in lookup()
57 if (htab->table[idx].hashval == hval in lookup()
58 && COMPARE (htab->table[idx].data, val) == 0) in lookup()
62 hash = 1 + hval % (htab->size - 2); in lookup()
67 idx = htab->size + idx - hash; in lookup()
72 if (htab->table[idx].hashval == hval in lookup()
73 && COMPARE (htab->table[idx].data, val) == 0) in lookup()
76 while (htab->table[idx].hashval); in lookup()
[all …]
Dfixedsizehash.h125 CONCAT(PREFIX,fshash_fini) (struct CONCAT(PREFIX,fshash) *htab) in CONCAT()
127 free (htab); in CONCAT()
133 CONCAT(PREFIX,fshash_lookup) (struct CONCAT(PREFIX,fshash) *htab, in CONCAT()
136 size_t idx = 1 + hval % htab->nslots; in CONCAT()
138 if (htab->table[idx].hval != 0) in CONCAT()
143 if (htab->table[idx].hval == hval in CONCAT()
144 && COMPARE (data, ENTRYP (htab->table[idx])) == 0) in CONCAT()
145 return &htab->table[idx]; in CONCAT()
148 hash = 1 + hval % (htab->nslots - 2); in CONCAT()
153 idx = htab->nslots + idx - hash; in CONCAT()
[all …]
Ddynamicsizehash.h89 extern int name##_init (name *htab, size_t init_size); \
92 extern int name##_free (name *htab); \
95 extern int name##_insert (name *htab, HASHTYPE hval, TYPE data); \
98 extern int name##_overwrite (name *htab, HASHTYPE hval, TYPE data); \
101 extern TYPE name##_find (name *htab, HASHTYPE hval, TYPE val);
109 extern TYPE name##_iterate (name *htab, void **ptr);
/external/mesa3d/src/gallium/state_trackers/vdpau/
Dhtab.c33 static struct handle_table *htab = NULL; variable
44 if (!htab) in vlCreateHTAB()
45 htab = handle_table_create(); in vlCreateHTAB()
46 ret = htab != NULL; in vlCreateHTAB()
58 if (htab) { in vlDestroyHTAB()
59 handle_table_destroy(htab); in vlDestroyHTAB()
60 htab = NULL; in vlDestroyHTAB()
72 if (htab) in vlAddDataHTAB()
73 handle = handle_table_add(htab, data); in vlAddDataHTAB()
87 if (htab) in vlGetDataHTAB()
[all …]
DMakefile12 C_SOURCES = htab.c \
/external/mesa3d/src/gallium/state_trackers/va/
Dhtab.c34 static struct handle_table *htab = NULL; variable
45 if (!htab) in vlCreateHTAB()
46 htab = handle_table_create(); in vlCreateHTAB()
47 ret = htab != NULL; in vlCreateHTAB()
59 if (htab) { in vlDestroyHTAB()
60 handle_table_destroy(htab); in vlDestroyHTAB()
61 htab = NULL; in vlDestroyHTAB()
73 if (htab) in vlAddDataHTAB()
74 handle = handle_table_add(htab, data); in vlAddDataHTAB()
88 if (htab) in vlGetDataHTAB()
[all …]
DMakefile12 C_SOURCES = htab.c \
/external/liblzf/
Dlzf_c.c102 , LZF_STATE htab in lzf_compress() argument
107 LZF_STATE htab; in lzf_compress() local
134 memset (htab, 0, sizeof (htab)); in lzf_compress()
145 hslot = htab + IDX (hval); in lzf_compress()
236 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS; in lzf_compress()
241 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS; in lzf_compress()
250 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS; in lzf_compress()
/external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
DLZWEncoder.java54 int[] htab = new int[HSIZE]; field in LZWEncoder
142 htab[i] = -1; in cl_hash()
185 if (htab[i] == fcode) { in compress()
188 } else if (htab[i] >= 0) // non-empty slot in compress()
197 if (htab[i] == fcode) { in compress()
201 } while (htab[i] >= 0); in compress()
207 htab[i] = fcode; in compress()
/external/liblzf/src/org/liblzf/
DCLZF.java156 int []htab=new int[1<<14]; in lzf_compress() local
159 htab[c]=0; in lzf_compress()
179 reference = htab[hslot]; in lzf_compress()
180 htab[hslot] = (int)iidx; in lzf_compress()
230 htab[IDX (hval)] = iidx; in lzf_compress()
234 htab[IDX (hval)] = iidx; in lzf_compress()
/external/liblzf/cs/
DCLZF.cs156 long []htab=new long[1<<14]; in lzf_compress()
159 htab[c]=0; in lzf_compress()
179 reference = htab[hslot]; in lzf_compress()
180 htab[hslot] = (long)iidx; in lzf_compress()
230 htab[IDX (hval)] = iidx; in lzf_compress()
234 htab[IDX (hval)] = iidx; in lzf_compress()
/external/valgrind/exp-sgcheck/
Dsg_main.c1228 IInstance* htab; member
1305 if (!frame->htab) in preen_global_Invars()
1308 IInstance* ii = &frame->htab[u]; in preen_global_Invars()
1332 sf->htab = &sf->htab_fixed[0]; in initialise_II_hash_table()
1333 tl_assert(sf->htab); in initialise_II_hash_table()
1336 sf->htab[i].insn_addr = 0; /* NOT IN USE */ in initialise_II_hash_table()
1346 tl_assert(sf && sf->htab); in resize_II_hash_table()
1349 old_htab = sf->htab; in resize_II_hash_table()
1381 sf->htab = new_htab; in resize_II_hash_table()
1408 tl_assert(sf->htab); in find_or_create_IInstance_SLOW()
[all …]
/external/llvm/test/CodeGen/X86/
D2010-02-12-CoalescerBug-Impdef.ll59htab"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"stru…
61htab"*, %"struct VEC_gimple_gc"*, %"struct VEC_tree_gc"*, %"union tree_node"*, %"struct pt_solutio…
67 %"struct htab" = type { i32 (i8*)*, i32 (i8*, i8*)*, void (i8*)*, i8**, i64, i64, i64, i32, i32, i8…
76 %"struct loops" = type { i32, %"struct VEC_loop_p_gc"*, %"struct htab"*, %"struct loop"* }
D2008-05-21-CoalescerBug.ll34 … %struct.machine_function*, i32, i32, %struct.language_function*, %struct.htab*, %struct.rtx_def*,…
35 …%struct.htab = type { i32 (i8*)*, i32 (i8*, i8*)*, void (i8*)*, i8**, i32, i32, i32, i32, i32, i8*…
/external/llvm/test/CodeGen/Generic/
D2006-08-30-CoalescerCrash.ll22 …%struct.htab = type { i32 (i8*)*, i32 (i8*, i8*)*, void (i8*)*, i8**, i32, i32, i32, i32, i32, i8*…
27 …%struct.ivopts_data = type { %struct.loop*, %struct.htab*, i32, %struct.version_info*, %struct.bit…
/external/opencv3/modules/core/src/
Dmatrix.cpp5173 const std::vector<size_t>& htab = hdr.hashtab; in SparseMatConstIterator() local
5174 size_t i, hsize = htab.size(); in SparseMatConstIterator()
5177 size_t nidx = htab[i]; in SparseMatConstIterator()