/external/elfutils/lib/ |
D | dynamicsizehash.c | 47 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 …]
|
D | fixedsizehash.h | 130 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 …]
|
D | dynamicsizehash.h | 89 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/ |
D | hashtable.c | 65 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/ |
D | htab.c | 32 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 …]
|
D | Makefile.sources | 6 htab.c \
|
D | meson.build | 24 'bitmap.c', 'decode.c', 'device.c', 'ftab.c', 'htab.c', 'mixer.c',
|
/external/mesa3d/src/gallium/state_trackers/va/ |
D | subpicture.c | 77 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 …]
|
D | buffer.c | 68 *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()
|
D | context.c | 159 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()
|
D | image.c | 120 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 …]
|
D | postproc.c | 144 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()
|
D | config.c | 219 *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()
|
D | picture.c | 54 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()
|
D | surface.c | 74 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/ |
D | LZWEncoder.java | 54 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/ |
D | sample_map_ret0.c | 5 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/ |
D | 2010-02-12-CoalescerBug-Impdef.ll | 59 …htab"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"stru… 61 …htab"*, %"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"* }
|
D | 2008-05-21-CoalescerBug.ll | 34 … %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/ |
D | 2010-02-12-CoalescerBug-Impdef.ll | 59 …htab"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"stru… 61 …htab"*, %"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"* }
|
D | 2008-05-21-CoalescerBug.ll | 34 … %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/ |
D | 2010-02-12-CoalescerBug-Impdef.ll | 59 …htab"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"union tree_node"*, %"stru… 61 …htab"*, %"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"* }
|
D | 2008-05-21-CoalescerBug.ll | 34 … %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/ |
D | 2006-08-30-CoalescerCrash.ll | 22 …%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/ |
D | 2006-08-30-CoalescerCrash.ll | 22 …%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…
|