Home
last modified time | relevance | path

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

/external/elfutils/lib/
Dfixedsizehash.h68 HASHTYPE hval; in CONCAT() local
122 HASHTYPE hval, TYPE *data) in CONCAT()
124 size_t idx = 1 + hval % htab->nslots; in CONCAT()
126 if (htab->table[idx].hval != 0) in CONCAT()
131 if (htab->table[idx].hval == hval in CONCAT()
136 hash = 1 + hval % (htab->nslots - 2); in CONCAT()
145 if (htab->table[idx].hval == hval in CONCAT()
149 while (htab->table[idx].hval != 0); in CONCAT()
161 HASHTYPE hval = HASHFCT (str, len ?: strlen (str)); in CONCAT() local
164 slot = CONCAT(PREFIX,fshash_lookup) (htab, hval, data); in CONCAT()
[all …]
Ddynamicsizehash.c32 lookup (htab, hval, val) in lookup() argument
34 unsigned long int hval;
38 size_t idx = 1 + hval % htab->size;
44 if (htab->table[idx].hashval == hval
49 hash = 1 + hval % (htab->size - 2);
59 if (htab->table[idx].hashval == hval
70 insert_entry_2 (NAME *htab, unsigned long int hval, size_t idx, TYPE data) in insert_entry_2() argument
91 htab->table[idx].hashval = hval; in insert_entry_2()
200 INSERT(NAME) (htab, hval, data)
202 unsigned long int hval; variable
[all …]
Ddynamicsizehash.h75 extern int name##_insert (name *htab, unsigned long int hval, TYPE data); \
78 extern int name##_overwrite (name *htab, unsigned long int hval, TYPE data); \
81 extern TYPE name##_find (name *htab, unsigned long int hval, TYPE val);
/external/chromium/net/base/
Deffective_tld_names_unittest1.cc93 register int hval = len; in hash() local
95 switch (hval) in hash()
98 hval += asso_values[(unsigned char)str[10]]; in hash()
101 hval += asso_values[(unsigned char)str[9]]; in hash()
104 hval += asso_values[(unsigned char)str[8]]; in hash()
107 hval += asso_values[(unsigned char)str[7]]; in hash()
110 hval += asso_values[(unsigned char)str[6]]; in hash()
113 hval += asso_values[(unsigned char)str[5]]; in hash()
116 hval += asso_values[(unsigned char)str[4]]; in hash()
119 hval += asso_values[(unsigned char)str[3]]; in hash()
[all …]
Deffective_tld_names_unittest2.cc88 register int hval = len; in hash() local
90 switch (hval) in hash()
93 hval += asso_values[(unsigned char)str[5]]; in hash()
96 hval += asso_values[(unsigned char)str[4]]; in hash()
99 hval += asso_values[(unsigned char)str[3]]; in hash()
102 hval += asso_values[(unsigned char)str[2]]; in hash()
105 hval += asso_values[(unsigned char)str[1]]; in hash()
108 hval += asso_values[(unsigned char)str[0]]; in hash()
111 return hval; in hash()
Deffective_tld_names.cc95 register int hval = len; in hash() local
97 switch (hval) in hash()
100 hval += asso_values[(unsigned char)str[42]]; in hash()
103 hval += asso_values[(unsigned char)str[41]]; in hash()
106 hval += asso_values[(unsigned char)str[40]]; in hash()
109 hval += asso_values[(unsigned char)str[39]]; in hash()
112 hval += asso_values[(unsigned char)str[38]]; in hash()
115 hval += asso_values[(unsigned char)str[37]]; in hash()
118 hval += asso_values[(unsigned char)str[36]]; in hash()
121 hval += asso_values[(unsigned char)str[35]]; in hash()
[all …]
/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/liblzf/
Dlzf_c.c127 unsigned int hval; in lzf_compress() local
139 hval = FRST (ip); in lzf_compress()
144 hval = NEXT (hval, ip); in lzf_compress()
145 hslot = htab + IDX (hval); in lzf_compress()
233 hval = FRST (ip); in lzf_compress()
235 hval = NEXT (hval, ip); in lzf_compress()
236 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS; in lzf_compress()
240 hval = NEXT (hval, ip); in lzf_compress()
241 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS; in lzf_compress()
249 hval = NEXT (hval, ip); in lzf_compress()
[all …]
/external/liblzf/src/org/liblzf/
DCLZF.java169 int hval = FRST (in_data,iidx); in lzf_compress() local
177 hval = NEXT (hval, in_data,iidx); in lzf_compress()
178 hslot = IDX (hval); in lzf_compress()
227 hval = FRST (in_data,iidx); in lzf_compress()
229 hval = NEXT (hval,in_data, iidx); in lzf_compress()
230 htab[IDX (hval)] = iidx; in lzf_compress()
233 hval = NEXT (hval, in_data,iidx); in lzf_compress()
234 htab[IDX (hval)] = iidx; in lzf_compress()
/external/liblzf/cs/
DCLZF.cs169 UInt32 hval = FRST (in_data,iidx); in lzf_compress()
177 hval = NEXT (hval, in_data,iidx); in lzf_compress()
178 hslot = IDX (hval); in lzf_compress()
227 hval = FRST (in_data,iidx); in lzf_compress()
229 hval = NEXT (hval,in_data, iidx); in lzf_compress()
230 htab[IDX (hval)] = iidx; in lzf_compress()
233 hval = NEXT (hval, in_data,iidx); in lzf_compress()
234 htab[IDX (hval)] = iidx; in lzf_compress()
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/preprocessor/
Datom.c149 int hval = 0; in HashString() local
152 hval = (hval*13507 + *s*197) ^ (hval >> 2); in HashString()
155 return hval & 0x7fffffff; in HashString()
165 int hval = 0; in HashString2() local
168 hval = (hval*729 + *s*37) ^ (hval >> 1); in HashString2()
171 return hval; in HashString2()
/external/srec/srec/crec/
Dastar_pphash.c94 int hash_get(FixedSizeHash* hash, partial_path* parp, void** hval) in hash_get() argument
107 *hval = p_return; in hash_get()
Dastar_pphash.h51 int hash_get(FixedSizeHash* hash, partial_path* parp, void** hval);
/external/elfutils/libasm/
Dasm_newscn.c152 unsigned long int hval; local
170 hval = elf_hash (scnname);
/external/elfutils/src/
Dldscript.y668 unsigned long int hval = elf_hash (runp->id); in add_id_list() local
673 defp = ld_version_str_tab_find (&ld_state.version_str_tab, hval, curp); in add_id_list()
704 ld_version_str_tab_insert (&ld_state.version_str_tab, hval, curp); in add_id_list()
Dld.c1440 unsigned long int hval = elf_hash (s->name); in create_lscript_symbols() local
1442 hval, s) != 0)) in create_lscript_symbols()
1449 hval, s); in create_lscript_symbols()
Dldscript.c2123 unsigned long int hval = elf_hash (runp->id); in add_id_list() local
2128 defp = ld_version_str_tab_find (&ld_state.version_str_tab, hval, curp); in add_id_list()
2159 ld_version_str_tab_insert (&ld_state.version_str_tab, hval, curp); in add_id_list()
Dldgeneric.c912 unsigned long int hval; in add_section() local
951 hval = elf_hash (search.name); in add_section()
954 queued = ld_section_tab_find (&ld_state.section_tab, hval, &search); in add_section()
1000 ld_section_tab_insert (&ld_state.section_tab, hval, queued); in add_section()
1355 unsigned long int hval = elf_hash (search.name); in add_relocatable_file() local
1361 if (((unlikely (hval == 165832675) in add_relocatable_file()
1363 || (unlikely (hval == 102264335) in add_relocatable_file()
1372 hval, &search); in add_relocatable_file()
1418 hval, newp) != 0)) in add_relocatable_file()
1429 if (hval == 6685956 && strcmp (newp->name, "_init") == 0) in add_relocatable_file()
[all …]
/external/mksh/src/
Dmain.c1328 j = (perturb = tblp->ua.hval) & nsize; in texpand()
1373 if ((p = *pp) != NULL && (p->ua.hval != h || !(p->flag & DEFINED) || in ktscan()
1414 p->ua.hval = h; in ktenter()
Dexpr.c629 vp->ua.hval = 0; in tempvar()
Dsh.h914 uint32_t hval; /* hash(name) */ member