Home
last modified time | relevance | path

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

123

/netbsd-src/external/gpl3/binutils/dist/libctf/
H A Dctf-dedup.c573 const char *hval = NULL; in ctf_dedup_rhash_type() local
581 #define ADD_CITER(citers, hval) \ in ctf_dedup_rhash_type() argument
590 if (ctf_dynset_cinsert (citers, hval) < 0) \ in ctf_dedup_rhash_type()
612 if ((hval = intern (fp, strdup (hashbuf))) == NULL) in ctf_dedup_rhash_type()
627 return hval; in ctf_dedup_rhash_type()
714 if ((hval = ctf_dedup_hash_type (fp, input, inputs, parents, input_num, in ctf_dedup_rhash_type()
721 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "referenced type", in ctf_dedup_rhash_type()
723 citer = hval; in ctf_dedup_rhash_type()
743 if ((hval = ctf_dedup_hash_type (fp, input, inputs, parents, input_num, in ctf_dedup_rhash_type()
750 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "sliced type", in ctf_dedup_rhash_type()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/libctf/
H A Dctf-dedup.c573 const char *hval = NULL; in ctf_dedup_rhash_type() local
581 #define ADD_CITER(citers, hval) \ in ctf_dedup_rhash_type() argument
590 if (ctf_dynset_cinsert (citers, hval) < 0) \ in ctf_dedup_rhash_type()
612 if ((hval = intern (fp, strdup (hashbuf))) == NULL) in ctf_dedup_rhash_type()
627 return hval; in ctf_dedup_rhash_type()
714 if ((hval = ctf_dedup_hash_type (fp, input, inputs, parents, input_num, in ctf_dedup_rhash_type()
721 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "referenced type", in ctf_dedup_rhash_type()
723 citer = hval; in ctf_dedup_rhash_type()
743 if ((hval = ctf_dedup_hash_type (fp, input, inputs, parents, input_num, in ctf_dedup_rhash_type()
750 ctf_dedup_sha1_add (&hash, hval, strlen (hval) + 1, "sliced type", in ctf_dedup_rhash_type()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Dhash.c124 unsigned long int hval; in compute_hashval() local
130 hval = keylen; in compute_hashval()
133 hval = (hval << 9) | (hval >> (sizeof (unsigned long) * CHAR_BIT - 9)); in compute_hashval()
134 hval += (unsigned long int) *(((const char *) key) + cnt++); in compute_hashval()
136 return hval != 0 ? hval : ~((unsigned long) 0); in compute_hashval()
150 unsigned long int hval) in lookup() argument
157 hash = 1 + hval % htab->size; in lookup()
163 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
168 hash = 1 + hval % (htab->size - 2); in lookup()
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gnulib-local/lib/
H A Dhash.c124 unsigned long int hval; in compute_hashval() local
130 hval = keylen; in compute_hashval()
133 hval = (hval << 9) | (hval >> (sizeof (unsigned long) * CHAR_BIT - 9)); in compute_hashval()
134 hval += (unsigned long int) *(((const char *) key) + cnt++); in compute_hashval()
136 return hval != 0 ? hval : ~((unsigned long) 0); in compute_hashval()
150 unsigned long int hval) in lookup() argument
157 hash = 1 + hval % htab->size; in lookup()
163 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
168 hash = 1 + hval % (htab->size - 2); in lookup()
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dhash.c124 unsigned long int hval; in compute_hashval() local
130 hval = keylen; in compute_hashval()
133 hval = (hval << 9) | (hval >> (sizeof (unsigned long) * CHAR_BIT - 9)); in compute_hashval()
134 hval += (unsigned long int) *(((const char *) key) + cnt++); in compute_hashval()
136 return hval != 0 ? hval : ~((unsigned long) 0); in compute_hashval()
150 unsigned long int hval) in lookup() argument
157 hash = 1 + hval % htab->size; in lookup()
163 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
168 hash = 1 + hval % (htab->size - 2); in lookup()
178 if (table[idx].used == hval && table[idx].keylen == keylen in lookup()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/intl/
H A Dhash-string.c34 unsigned long int hval, g; in __hash_string() local
38 hval = 0; in __hash_string()
41 hval <<= 4; in __hash_string()
42 hval += (unsigned char) *str++; in __hash_string()
43 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); in __hash_string()
46 hval ^= g >> (HASHWORDBITS - 8); in __hash_string()
47 hval ^= g; in __hash_string()
50 return hval; in __hash_string()
/netbsd-src/external/gpl2/texinfo/dist/intl/
H A Dhash-string.h33 unsigned long int hval, g; in hash_string() local
37 hval = 0; in hash_string()
40 hval <<= 4; in hash_string()
41 hval += (unsigned char) *str++; in hash_string()
42 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); in hash_string()
45 hval ^= g >> (HASHWORDBITS - 8); in hash_string()
46 hval ^= g; in hash_string()
49 return hval; in hash_string()
/netbsd-src/external/bsd/liblzf/dist/
H A Dlzf_c.c126 unsigned int hval; in lzf_compress_r() local
142 hval = FRST (ip); in lzf_compress_r()
145 hval = NEXT (hval, ip); in lzf_compress_r()
146 hslot = htab + IDX (hval); in lzf_compress_r()
236 hval = FRST (ip); in lzf_compress_r()
238 hval = NEXT (hval, ip); in lzf_compress_r()
239 htab[IDX (hval)] = ip; in lzf_compress_r()
243 hval = NEXT (hval, ip); in lzf_compress_r()
244 htab[IDX (hval)] = ip; in lzf_compress_r()
252 hval = NEXT (hval, ip); in lzf_compress_r()
[all …]
/netbsd-src/external/gpl3/gcc/dist/intl/
H A Dhash-string.h42 unsigned long int hval, g; local
46 hval = 0;
49 hval <<= 4;
50 hval += (unsigned long int) *str++;
51 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
54 hval ^= g >> (HASHWORDBITS - 8);
55 hval ^= g;
58 return hval;
/netbsd-src/external/gpl2/grep/dist/intl/
H A Dhash-string.h44 unsigned long int hval, g; local
48 hval = 0;
51 hval <<= 4;
52 hval += (unsigned long int) *str++;
53 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
56 hval ^= g >> (HASHWORDBITS - 8);
57 hval ^= g;
60 return hval;
/netbsd-src/external/gpl3/gdb.old/dist/intl/
H A Dhash-string.h42 unsigned long int hval, g; local
46 hval = 0;
49 hval <<= 4;
50 hval += (unsigned long int) *str++;
51 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
54 hval ^= g >> (HASHWORDBITS - 8);
55 hval ^= g;
58 return hval;
/netbsd-src/external/gpl3/binutils.old/dist/intl/
H A Dhash-string.h42 unsigned long int hval, g; local
46 hval = 0;
49 hval <<= 4;
50 hval += (unsigned long int) *str++;
51 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
54 hval ^= g >> (HASHWORDBITS - 8);
55 hval ^= g;
58 return hval;
/netbsd-src/external/gpl3/gcc.old/dist/intl/
H A Dhash-string.h42 unsigned long int hval, g; local
46 hval = 0;
49 hval <<= 4;
50 hval += (unsigned long int) *str++;
51 g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
54 hval ^= g >> (HASHWORDBITS - 8);
55 hval ^= g;
58 return hval;
/netbsd-src/external/bsd/liblzf/dist/cs/
H A 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()
/netbsd-src/crypto/external/bsd/libsaslc/dist/test/hash_tests/
H A Dtest_hash.c77 size_t hval; in hash() local
79 hval = hinit; in hash()
81 hval <<= shift; in hash()
82 hval += (size_t)*cp; in hash()
84 return hval % hsize; in hash()
91 size_t hval, i; in no_collision() local
97 hval = hash(keys[i], hsize, hinit, shift); in no_collision()
98 if (used[hval] != 0) { in no_collision()
102 used[hval] = keys[i]; in no_collision()
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dhash.c74 uint32_t hval;
76 isc_halfsiphash24_finalize(state, (uint8_t *)&hval);
78 return hval;
96 uint64_t hval; in isc_hash_set_initializer()
98 isc_siphash24_finalize(state, (uint8_t *)&hval); in isc_hash_set_initializer()
100 return hval; in isc_hash_set_initializer()
108 uint64_t hval; isc_hash64() local
131 uint32_t hval; isc_hash32() local
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/
H A Dhash.c112 uint64_t hval; in isc_hash64() local
120 isc_siphash24(isc_hash_key, data, length, (uint8_t *)&hval); in isc_hash64()
127 isc_siphash24(isc_hash_key, input, length, (uint8_t *)&hval); in isc_hash64()
130 return (hval); in isc_hash64()
135 uint32_t hval; in isc_hash32() local
143 isc_halfsiphash24(isc_hash_key, data, length, (uint8_t *)&hval); in isc_hash32()
151 (uint8_t *)&hval); in isc_hash32()
154 return (hval); in isc_hash32()
/netbsd-src/sys/net/
H A Dbsd-comp.c466 int hval, disp, ent, ilen; in bsd_compress() local
565 hval = BSD_HASH(ent, c, hshift); in bsd_compress()
566 dictp = &db->dict[hval]; in bsd_compress()
577 disp = (hval == 0) ? 1 : hval; in bsd_compress()
579 hval += disp; in bsd_compress()
580 if (hval >= db->hsize) in bsd_compress()
581 hval -= db->hsize; in bsd_compress()
582 dictp = &db->dict[hval]; in bsd_compress()
605 dictp2->cptr = hval; in bsd_compress()
675 uint32_t hval, disp; in bsd_incomp() local
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/bounce/
H A Dbounce_template.c296 char *hval; in bounce_template_parse_buffer() local
324 for (hval = cp + hlen; *hval && (*hval == ':' || ISSPACE(*hval)); hval++) in bounce_template_parse_buffer()
325 *hval = 0; in bounce_template_parse_buffer()
326 if (*hval == 0) { in bounce_template_parse_buffer()
332 if (!allascii(hval)) { in bounce_template_parse_buffer()
339 tp->mime_charset = hval; in bounce_template_parse_buffer()
341 tp->std_from = tp->obs_from = hval; in bounce_template_parse_buffer()
343 tp->subject = hval; in bounce_template_parse_buffer()
351 tp->postmaster_subject = hval; in bounce_template_parse_buffer()
/netbsd-src/sys/fs/adosfs/
H A Dadlookup.c79 u_long bn, plen, hval; in adosfs_lookup() local
163 hval = adoshash(pelt, plen, adp->ntabent, IS_INTER(adp->amp)); in adosfs_lookup()
164 bn = adp->tab[hval]; in adosfs_lookup()
165 i = uimin(adp->tabi[hval], 0); in adosfs_lookup()
176 if (--i < adp->tabi[hval]) in adosfs_lookup()
177 adp->tabi[hval] = i; in adosfs_lookup()
184 if (i != adp->tabi[hval]) in adosfs_lookup()
187 adp->tabi[hval] = -adp->tabi[hval]; in adosfs_lookup()
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Dhash_fnv.c171 HASH_FNV_T hval; in main() member
190 HASH_FNV_T hval; in main() local
195 if ((hval = hash_fnvz(tp->str)) != tp->hval) { in main()
197 tp->str, (unsigned long) tp->hval, in main()
198 (unsigned long) hval); in main()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/
H A Dcfns.h94 int hval = len; in hash() local
96 switch (hval) in hash()
99 hval += asso_values[(unsigned char)str[5]+1]; in hash()
102 hval += asso_values[(unsigned char)str[4]]; in hash()
105 hval += asso_values[(unsigned char)str[3]]; in hash()
108 hval += asso_values[(unsigned char)str[2]]; in hash()
111 hval += asso_values[(unsigned char)str[1]+1]; in hash()
114 hval += asso_values[(unsigned char)str[0]]; in hash()
117 return hval + asso_values[(unsigned char)str[len - 1]]; in hash()
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Dcfns.h94 unsigned int hval = len; in hash() local
96 switch (hval) in hash()
99 hval += asso_values[static_cast<unsigned char>(str[5]+1)]; in hash()
102 hval += asso_values[static_cast<unsigned char>(str[4])]; in hash()
105 hval += asso_values[static_cast<unsigned char>(str[3])]; in hash()
108 hval += asso_values[static_cast<unsigned char>(str[2])]; in hash()
111 hval += asso_values[static_cast<unsigned char>(str[1]+1)]; in hash()
114 hval += asso_values[static_cast<unsigned char>(str[0])]; in hash()
117 return hval + asso_values[static_cast<unsigned char>(str[len - 1])]; in hash()
/netbsd-src/crypto/external/bsd/libsaslc/dist/src/
H A Ddict.c83 size_t hval; in saslc__dict_hashval() local
85 hval = HASH_INIT; in saslc__dict_hashval()
87 hval <<= HASH_SHIFT; in saslc__dict_hashval()
88 hval += (size_t)*cp; in saslc__dict_hashval()
90 return hval % HASH_SIZE; in saslc__dict_hashval()
/netbsd-src/external/mit/xorg/lib/xcb-util/atom/
H A Datoms.c161 register int hval = len; local
163 switch (hval)
166 hval += asso_values[(unsigned char)str[8]];
171 hval += asso_values[(unsigned char)str[5]];
176 hval += asso_values[(unsigned char)str[2]];
179 return hval + asso_values[(unsigned char)str[len - 1]];

123