Home
last modified time | relevance | path

Searched refs:hval (Results 1 – 18 of 18) sorted by relevance

/external/elfutils/lib/
Dfixedsizehash.h80 HASHTYPE hval; in CONCAT() local
134 HASHTYPE hval, TYPE *data) 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()
148 hash = 1 + hval % (htab->nslots - 2); in CONCAT()
157 if (htab->table[idx].hval == hval in CONCAT()
161 while (htab->table[idx].hval != 0); in CONCAT()
174 HASHTYPE hval = HASHFCT (str, len ?: strlen (str)); in CONCAT() local
177 slot = CONCAT(PREFIX,fshash_lookup) (htab, hval, data); in CONCAT()
[all …]
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()
57 if (htab->table[idx].hashval == hval in lookup()
62 hash = 1 + hval % (htab->size - 2); in lookup()
72 if (htab->table[idx].hashval == hval in lookup()
83 insert_entry_2 (NAME *htab, HASHTYPE hval, size_t idx, TYPE data) in insert_entry_2() argument
104 htab->table[idx].hashval = hval; in insert_entry_2()
210 INSERT(NAME) (NAME *htab, HASHTYPE hval, TYPE data) in INSERT()
215 hval = hval ?: 1; in INSERT()
217 idx = lookup (htab, hval, data); in INSERT()
[all …]
Ddynamicsizehash.h95 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);
/external/e2fsprogs/intl/
Dhash-string.h31 unsigned long int hval, g; in hash_string() local
35 hval = 0; in hash_string()
38 hval <<= 4; in hash_string()
39 hval += (unsigned char) *str++; in hash_string()
40 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); in hash_string()
43 hval ^= g >> (HASHWORDBITS - 8); in hash_string()
44 hval ^= g; in hash_string()
47 return hval; in hash_string()
/external/fio/crc/
Dfnv.c9 uint64_t fnv(const void *buf, uint32_t len, uint64_t hval) in fnv() argument
14 hval *= FNV_PRIME; in fnv()
16 hval ^= (uint64_t) *ptr++; in fnv()
28 hval ^= val; in fnv()
33 return hval; in fnv()
/external/libxkbcommon/xkbcommon/src/xkbcomp/
Dkeywords.c125 register int hval = len; in keyword_gperf_hash() local
127 switch (hval) in keyword_gperf_hash()
130 hval += asso_values[(unsigned char)str[4]]; in keyword_gperf_hash()
135 hval += asso_values[(unsigned char)str[1]]; in keyword_gperf_hash()
138 hval += asso_values[(unsigned char)str[0]]; in keyword_gperf_hash()
141 return hval; in keyword_gperf_hash()
/external/libusb/libusb/os/
Dwindows_nt_common.c207 unsigned long hval, hval2; in htab_hash() local
223 hval = r % htab_size; in htab_hash()
224 if (hval == 0) in htab_hash()
225 ++hval; in htab_hash()
228 idx = hval; in htab_hash()
231 if ((htab_table[idx].used == hval) && (safe_strcmp(str, htab_table[idx].str) == 0)) in htab_hash()
237 hval2 = 1 + hval % (htab_size - 2); in htab_hash()
247 if (idx == hval) in htab_hash()
251 if ((htab_table[idx].used == hval) && (safe_strcmp(str, htab_table[idx].str) == 0)) in htab_hash()
271 htab_table[idx].used = hval; in htab_hash()
/external/toybox/kconfig/
Dzconf.hash.c_shipped74 register int hval = len;
76 switch (hval)
79 hval += asso_values[(unsigned char)str[2]];
83 hval += asso_values[(unsigned char)str[0]];
86 return hval;
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Dfilters.py132 dval, hval, name = m.groups()
135 elif hval:
136 codepoint = int(hval, 16)
/external/zopfli/src/zopfli/
Dlz77.c249 int hval = h->val; in ZopfliFindLongestMatch() local
276 assert(hval < 65536); in ZopfliFindLongestMatch()
278 pp = hhead[hval]; /* During the whole loop, p == hprev[pp]. */ in ZopfliFindLongestMatch()
291 assert(hhashval[p] == hval); in ZopfliFindLongestMatch()
339 hval = h->val2; in ZopfliFindLongestMatch()
/external/v8/src/crankshaft/
Dlithium-codegen.cc127 HValue* hval = instr->hydrogen_value(); in CheckEnvironmentUsage() local
129 if (dead_block || !hval->block()->IsReachable()) continue; in CheckEnvironmentUsage()
131 HInstruction* hinstr = HInstruction::cast(hval); in CheckEnvironmentUsage()
/external/elfutils/src/
Dldscript.y710 unsigned long int hval = elf_hash (runp->id); in add_id_list() local
715 defp = ld_version_str_tab_find (&ld_state.version_str_tab, hval, curp); in add_id_list()
746 ld_version_str_tab_insert (&ld_state.version_str_tab, hval, curp); in add_id_list()
Dldgeneric.c961 unsigned long int hval; in add_section() local
1000 hval = elf_hash (search.name); in add_section()
1003 queued = ld_section_tab_find (&ld_state.section_tab, hval, &search); in add_section()
1082 ld_section_tab_insert (&ld_state.section_tab, hval, queued); in add_section()
1513 unsigned long int hval = elf_hash (search.name); in add_relocatable_file() local
1519 if (((unlikely (hval == 165832675ul) in add_relocatable_file()
1521 || (unlikely (hval == 102264335ul) in add_relocatable_file()
1530 hval, &search); in add_relocatable_file()
1578 hval, newp) != 0)) in add_relocatable_file()
1589 if (hval == 6685956 && strcmp (newp->name, "_init") == 0) in add_relocatable_file()
[all …]
Dld.c1522 unsigned long int hval = elf_hash (s->name); in create_lscript_symbols() local
1524 hval, s) != 0)) in create_lscript_symbols()
1531 hval, s); in create_lscript_symbols()
Delflint.c2212 Elf32_Word hval = elf_gnu_hash (symname); in check_gnu_hash() local
2213 if ((hval & ~1u) != (chainhash & ~1u)) in check_gnu_hash()
2220 size_t maskidx = (hval / classbits) & bitmask_idxmask; in check_gnu_hash()
2232 |= UINT32_C (1) << (hval & (classbits - 1)); in check_gnu_hash()
2234 |= UINT32_C (1) << ((hval >> shift) & (classbits - 1)); in check_gnu_hash()
2239 |= UINT64_C (1) << (hval & (classbits - 1)); in check_gnu_hash()
2241 |= UINT64_C (1) << ((hval >> shift) & (classbits - 1)); in check_gnu_hash()
/external/mksh/src/
Dmain.c1773 j = perturb = tblp->ua.hval; in tgrow()
1818 if ((p = *pp) != NULL && (p->ua.hval != h || !(p->flag & DEFINED) || in ktscan()
1851 p->ua.hval = h; in ktenter()
Dexpr.c673 vp->ua.hval = 0; in tempvar()
Dsh.h1700 uint32_t hval; /* hash(name) */ member