Home
last modified time | relevance | path

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

12

/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.h130 CONCAT(PREFIX,fshash_fini) (struct CONCAT(PREFIX,fshash) *htab) in CONCAT()
132 free (htab); in CONCAT()
138 CONCAT(PREFIX,fshash_lookup) (struct CONCAT(PREFIX,fshash) *htab, in CONCAT()
141 size_t idx = 1 + hval % htab->nslots; in CONCAT()
143 if (htab->table[idx].hval != 0) in CONCAT()
148 if (htab->table[idx].hval == hval in CONCAT()
149 && COMPARE (data, ENTRYP (htab->table[idx])) == 0) in CONCAT()
150 return &htab->table[idx]; in CONCAT()
153 hash = 1 + hval % (htab->nslots - 2); in CONCAT()
158 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/u-boot/lib/
Dhashtable.c65 static void _hdelete(const char *key, struct hsearch_data *htab, ENTRY *ep,
99 int hcreate_r(size_t nel, struct hsearch_data *htab) in hcreate_r() argument
102 if (htab == NULL) { in hcreate_r()
108 if (htab->table != NULL) in hcreate_r()
116 htab->size = nel; in hcreate_r()
117 htab->filled = 0; in hcreate_r()
120 htab->table = (_ENTRY *) calloc(htab->size + 1, sizeof(_ENTRY)); in hcreate_r()
121 if (htab->table == NULL) in hcreate_r()
138 void hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument
143 if (htab == NULL) { in hdestroy_r()
[all …]
/external/mesa3d/src/gallium/state_trackers/vdpau/
Dhtab.c32 static struct handle_table *htab = NULL; variable
42 if (!htab) in vlCreateHTAB()
43 htab = handle_table_create(); in vlCreateHTAB()
44 ret = htab != NULL; in vlCreateHTAB()
52 if (htab && !handle_table_get_first_handle(htab)) { in vlDestroyHTAB()
53 handle_table_destroy(htab); in vlDestroyHTAB()
54 htab = NULL; in vlDestroyHTAB()
65 if (htab) in vlAddDataHTAB()
66 handle = handle_table_add(htab, data); in vlAddDataHTAB()
77 if (htab) in vlGetDataHTAB()
[all …]
DMakefile.sources6 htab.c \
Dmeson.build24 'bitmap.c', 'decode.c', 'device.c', 'ftab.c', 'htab.c', 'mixer.c',
/external/mesa3d/src/gallium/state_trackers/va/
Dsubpicture.c77 img = handle_table_get(drv->htab, image); in vlVaCreateSubpicture()
90 *subpicture = handle_table_add(VL_VA_DRIVER(ctx)->htab, sub); in vlVaCreateSubpicture()
108 sub = handle_table_get(drv->htab, subpicture); in vlVaDestroySubpicture()
115 handle_table_remove(drv->htab, subpicture); in vlVaDestroySubpicture()
134 img = handle_table_get(drv->htab, image); in vlVaSubpictureImage()
140 sub = handle_table_get(drv->htab, subpicture); in vlVaSubpictureImage()
191 sub = handle_table_get(drv->htab, subpicture); in vlVaAssociateSubpicture()
198 surf = handle_table_get(drv->htab, target_surfaces[i]); in vlVaAssociateSubpicture()
238 surf = handle_table_get(drv->htab, target_surfaces[i]); in vlVaAssociateSubpicture()
261 sub = handle_table_get(drv->htab, subpicture); in vlVaDeassociateSubpicture()
[all …]
Dbuffer.c68 *buf_id = handle_table_add(drv->htab, buf); in vlVaCreateBuffer()
86 buf = handle_table_get(drv->htab, buf_id); in vlVaBufferSetNumElements()
121 buf = handle_table_get(drv->htab, buf_id); in vlVaMapBuffer()
170 buf = handle_table_get(drv->htab, buf_id); in vlVaUnmapBuffer()
201 buf = handle_table_get(drv->htab, buf_id); in vlVaDestroyBuffer()
212 handle_table_remove(VL_VA_DRIVER(ctx)->htab, buf_id); in vlVaDestroyBuffer()
230 buf = handle_table_get(drv->htab, buf_id); in vlVaBufferInfo()
264 buf = handle_table_get(VL_VA_DRIVER(ctx)->htab, buf_id); in vlVaAcquireBufferHandle()
349 buf = handle_table_get(drv->htab, buf_id); in vlVaReleaseBufferHandle()
Dcontext.c159 drv->htab = handle_table_create(); in VA_DRIVER_INIT_FUNC()
160 if (!drv->htab) in VA_DRIVER_INIT_FUNC()
195 handle_table_destroy(drv->htab); in VA_DRIVER_INIT_FUNC()
223 config = handle_table_get(drv->htab, config_id); in vlVaCreateContext()
298 *context_id = handle_table_add(drv->htab, context); in vlVaCreateContext()
315 context = handle_table_get(drv->htab, context_id); in vlVaDestroyContext()
344 handle_table_remove(drv->htab, context_id); in vlVaDestroyContext()
363 handle_table_destroy(drv->htab); in vlVaTerminate()
Dimage.c120 img->image_id = handle_table_add(drv->htab, img); in vlVaCreateImage()
213 surf = handle_table_get(drv->htab, surface); in vlVaDeriveImage()
274 img->image_id = handle_table_add(drv->htab, img); in vlVaDeriveImage()
282 img->buf = handle_table_add(VL_VA_DRIVER(ctx)->htab, img_buf); in vlVaDeriveImage()
302 vaimage = handle_table_get(drv->htab, image); in vlVaDestroyImage()
308 handle_table_remove(VL_VA_DRIVER(ctx)->htab, image); in vlVaDestroyImage()
344 surf = handle_table_get(drv->htab, surface); in vlVaGetImage()
350 vaimage = handle_table_get(drv->htab, image); in vlVaGetImage()
356 img_buf = handle_table_get(drv->htab, vaimage->buf); in vlVaGetImage()
455 surf = handle_table_get(drv->htab, surface); in vlVaPutImage()
[all …]
Dpostproc.c144 surf = handle_table_get(drv->htab, context->target_id); in vlVaPostProcBlit()
244 prevprev = handle_table_get(drv->htab, param->forward_references[1]); in vlVaApplyDeint()
245 prev = handle_table_get(drv->htab, param->forward_references[0]); in vlVaApplyDeint()
246 next = handle_table_get(drv->htab, param->backward_references[0]); in vlVaApplyDeint()
299 src_surface = handle_table_get(drv->htab, param->surface); in vlVaHandleVAProcPipelineParameterBufferType()
300 dst_surface = handle_table_get(drv->htab, context->target_id); in vlVaHandleVAProcPipelineParameterBufferType()
308 vlVaBuffer *buf = handle_table_get(drv->htab, param->filters[i]); in vlVaHandleVAProcPipelineParameterBufferType()
Dconfig.c219 *config_id = handle_table_add(drv->htab, config); in vlVaCreateConfig()
288 *config_id = handle_table_add(drv->htab, config); in vlVaCreateConfig()
309 config = handle_table_get(drv->htab, config_id); in vlVaDestroyConfig()
317 handle_table_remove(drv->htab, config_id); in vlVaDestroyConfig()
339 config = handle_table_get(drv->htab, config_id); in vlVaQueryConfigAttributes()
Dpicture.c54 context = handle_table_get(drv->htab, context_id); in vlVaBeginPicture()
65 surf = handle_table_get(drv->htab, render_target); in vlVaBeginPicture()
100 vlVaSurface *surf = handle_table_get(drv->htab, surface_id); in vlVaGetReferenceFrame()
448 coded_buf = handle_table_get(drv->htab, h264->coded_buf); in handleVAEncPictureParameterBufferType()
527 context = handle_table_get(drv->htab, context_id); in vlVaRenderPicture()
534 vlVaBuffer *buf = handle_table_get(drv->htab, buffers[i]); in vlVaRenderPicture()
610 context = handle_table_get(drv->htab, context_id); in vlVaEndPicture()
624 surf = handle_table_get(drv->htab, context->target_id); in vlVaEndPicture()
Dsurface.c74 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]); in vlVaDestroySurfaces()
83 handle_table_remove(drv->htab, surface_list[i]); in vlVaDestroySurfaces()
105 surf = handle_table_get(drv->htab, render_target); in vlVaSyncSurface()
118 context = handle_table_get(drv->htab, surf->ctx); in vlVaSyncSurface()
204 buf = handle_table_get(drv->htab, sub->image->buf); in vlVaPutSubpictures()
292 surf = handle_table_get(drv->htab, surface_id); in vlVaPutSurface()
414 config = handle_table_get(drv->htab, config_id); in vlVaQuerySurfaceAttributes()
779 surfaces[i] = handle_table_add(drv->htab, surf); in vlVaCreateSurfaces2()
902 vlVaBuffer *buf = handle_table_get(VL_VA_DRIVER(ctx)->htab, filters[i]); in vlVaQueryVideoProcPipelineCaps()
953 surf = handle_table_get(drv->htab, surface_id); in vlVaExportSurfaceHandle()
/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/linux-kselftest/tools/testing/selftests/bpf/
Dsample_map_ret0.c5 struct bpf_map_def SEC("maps") htab = {
26 value = bpf_map_lookup_elem(&htab, &key); in func()
/external/swiftshader/third_party/llvm-7.0/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/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/swiftshader/third_party/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/swiftshader/third_party/llvm-7.0/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/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…

12