/external/elfutils/lib/ |
D | fixedsizehash.h | 85 HASHTYPE hval; in CONCAT() local 139 HASHTYPE hval, TYPE *data) 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() 153 hash = 1 + hval % (htab->nslots - 2); in CONCAT() 162 if (htab->table[idx].hval == hval in CONCAT() 166 while (htab->table[idx].hval != 0); in CONCAT() 179 HASHTYPE hval = HASHFCT (str, len ?: strlen (str)); in CONCAT() local 182 slot = CONCAT(PREFIX,fshash_lookup) (htab, hval, data); in CONCAT() [all …]
|
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() 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 …]
|
D | dynamicsizehash.h | 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);
|
/external/e2fsprogs/intl/ |
D | hash-string.h | 31 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/tensorflow/tensorflow/core/grappler/graph_analyzer/ |
D | sig_node.cc | 54 size_t hval = link_hasher(tag); in CopyLinksPass1() local 60 map_entry.unique_hash = hval; in CopyLinksPass1() 93 size_t hval = std::hash<string>()(opcode()); in ComputeTopoHash0() local 98 CombineHash(entry.link_hash, &hval); in ComputeTopoHash0() 101 topo_hash_.push_back(hval); in ComputeTopoHash0() 123 size_t hval = topo_hash_[0]; in ComputeTopoHash() local 131 CombineHash(last_link_hash, &hval); in ComputeTopoHash() 132 CombineHash(comm_hash, &hval); in ComputeTopoHash() 148 CombineHash(last_link_hash, &hval); in ComputeTopoHash() 149 CombineHash(comm_hash, &hval); in ComputeTopoHash() [all …]
|
D | sig_node.h | 85 size_t hval = port_hasher(tag.local); in operator() local 86 CombineHash(port_hasher(tag.remote), &hval); in operator() 87 return hval; in operator()
|
D | sig_node_test.cc | 676 size_t hval = 0; in TestGraphEveryWay() local 680 CombineHash(ih, &hval); in TestGraphEveryWay() 682 EXPECT_THAT(sig_.sig_short, Eq(hval)); in TestGraphEveryWay() 938 size_t hval = GetHighTopoHash(sig_.nodes[0]); in TEST_F() local 940 EXPECT_THAT(GetHighTopoHash(sig_.nodes[i]), Eq(hval)) << " at index " << i; in TEST_F()
|
/external/u-boot/lib/ |
D | hashtable.c | 226 unsigned int hval, unsigned int idx) in _compare_and_overwrite_entry() argument 228 if (htab->table[idx].used == hval in _compare_and_overwrite_entry() 273 unsigned int hval; in hsearch_r() local 281 hval = len; in hsearch_r() 284 hval <<= 4; in hsearch_r() 285 hval += item.key[count]; in hsearch_r() 292 hval %= htab->size; in hsearch_r() 293 if (hval == 0) in hsearch_r() 294 ++hval; in hsearch_r() 297 idx = hval; in hsearch_r() [all …]
|
/external/libxkbcommon/xkbcommon/src/xkbcomp/ |
D | keywords.c | 125 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/ |
D | windows_nt_common.c | 207 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/ |
D | zconf.hash.c_shipped | 74 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/zopfli/src/zopfli/ |
D | lz77.c | 249 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/u-boot/drivers/usb/host/ |
D | dwc2.c | 85 uint32_t hval = (ghwcfg2 & DWC2_HWCFG2_HS_PHY_TYPE_MASK) >> in init_fslspclksel() local 90 if (hval == 2 && fval == 1) in init_fslspclksel() 417 uint32_t hval = (ghwcfg2 & DWC2_HWCFG2_HS_PHY_TYPE_MASK) >> in dwc_otg_core_init() local 421 if (hval == 2 && fval == 1) { in dwc_otg_core_init()
|
/external/mksh/src/ |
D | main.c | 1774 j = perturb = tblp->ua.hval; in tgrow() 1819 if ((p = *pp) != NULL && (p->ua.hval != h || !(p->flag & DEFINED) || in ktscan() 1852 p->ua.hval = h; in ktenter()
|
D | expr.c | 673 vp->ua.hval = 0; in tempvar()
|
D | sh.h | 1704 uint32_t hval; /* hash(name) */ member
|
/external/elfutils/src/ |
D | elflint.c | 2239 Elf32_Word hval = elf_gnu_hash (symname); in check_gnu_hash() local 2240 if ((hval & ~1u) != (chainhash & ~1u)) in check_gnu_hash() 2247 size_t maskidx = (hval / classbits) & bitmask_idxmask; in check_gnu_hash() 2259 |= UINT32_C (1) << (hval & (classbits - 1)); in check_gnu_hash() 2261 |= UINT32_C (1) << ((hval >> shift) & (classbits - 1)); in check_gnu_hash() 2266 |= UINT64_C (1) << (hval & (classbits - 1)); in check_gnu_hash() 2268 |= UINT64_C (1) << ((hval >> shift) & (classbits - 1)); in check_gnu_hash()
|