Home
last modified time | relevance | path

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

12

/netbsd/src/external/gpl3/gcc/dist/intl/
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/
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/bsd/liblzf/dist/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()
/netbsd/src/crypto/external/bsd/libsaslc/dist/test/hash_tests/
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/sys/net/
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/
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/
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/
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/dist/gcc/cp/
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/
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/
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]];
/netbsd/src/external/bsd/pcc/dist/pcc/arch/pdp10/
Dlocal2.c255 CONSZ hval = (lval >> 35) & 03777777777LL; in gethval() local
257 if ((hval & 03000000000LL) == 03000000000LL) { in gethval()
258 hval |= 0777000000000LL; in gethval()
259 } else if ((hval & 03000000000LL) == 02000000000LL) { in gethval()
260 hval &= 01777777777LL; in gethval()
261 hval |= 0400000000000LL; in gethval()
263 return hval; in gethval()
675 CONSZ hval; in zzzcode() local
739 hval = gethval(p->n_lval); in zzzcode()
740 printf("[ .long 0%llo,0%llo", hval, in zzzcode()
[all …]
/netbsd/src/sys/dev/pci/
Dif_xge.c198 uint32_t lval, hval; in pif_wcsr() local
201 hval = val>>32; in pif_wcsr()
203 bus_space_write_4(sc->sc_st, sc->sc_sh, csr+4, hval); in pif_wcsr()
219 uint32_t lval, hval; in txp_wcsr() local
222 hval = val>>32; in txp_wcsr()
224 bus_space_write_4(sc->sc_txt, sc->sc_txh, csr+4, hval); in txp_wcsr()
231 uint32_t lval, hval; in pif_wkey() local
234 hval = val>>32; in pif_wkey()
238 bus_space_write_4(sc->sc_st, sc->sc_sh, csr+4, hval); in pif_wkey()
/netbsd/src/external/gpl3/gcc/dist/gcc/config/vax/
Dvax.cc1295 unsigned HOST_WIDE_INT hval, lval; in vax_output_int_move() local
1304 hval = CONST_DOUBLE_HIGH (operands[1]) & 0xffffffff; in vax_output_int_move()
1309 hval = 0; in vax_output_int_move()
1325 if (HOST_BITS_PER_WIDE_INT == 32 && hval != 0) in vax_output_int_move()
1327 if (n <= 26 || hval >= ((unsigned)1 << (n - 26))) in vax_output_int_move()
1330 lval |= hval << (32 - n); in vax_output_int_move()
1343 else if (hval != 0 in vax_output_int_move()
1344 && (n = exact_log2 (hval & (- hval)) - 1) != -1 in vax_output_int_move()
1345 && (hval >> n) < 64) in vax_output_int_move()
1347 operands[1] = GEN_INT (hval >> n); in vax_output_int_move()
/netbsd/src/external/ibm-public/postfix/dist/src/cleanup/
Dcleanup.h150 #define HDRS_SEEN_MASK(hval) ((uint64_t) 1 << (hval)) argument
/netbsd/src/external/bsd/ntp/dist/ntpq/
Dntpq.c3667 sockaddr_u hval; in cookedprint() local
3701 if (!value || !decodenetnum(value, &hval)) { in cookedprint()
3704 output(fp, name, nntohost(&hval)); in cookedprint()
3706 output(fp, name, stoa(&hval)); in cookedprint()
3713 } else if (decodenetnum(value, &hval)) { in cookedprint()
3714 if (datatype == TYPE_CLOCK && IS_IPV4(&hval)) { in cookedprint()
3721 … unsigned char *str = (unsigned char *)&(hval.sa4).sin_addr; in cookedprint()
3727 } else if (ISREFCLOCKADR(&hval)) { in cookedprint()
3728 output(fp, name, refnumtoa(&hval)); in cookedprint()
3731 output(fp, name, stoa(&hval)); in cookedprint()
[all …]
/netbsd/src/external/cddl/osnet/dist/uts/common/dtrace/
Dfasttrap.c280 uint_t hval = 0; in fasttrap_hash_str() local
283 hval = (hval << 4) + *p++; in fasttrap_hash_str()
284 if ((g = (hval & 0xf0000000)) != 0) in fasttrap_hash_str()
285 hval ^= g >> 24; in fasttrap_hash_str()
286 hval &= ~g; in fasttrap_hash_str()
288 return (hval); in fasttrap_hash_str()
Ddtrace.c8219 uint_t hval = 0; local
8222 hval = (hval << 4) + *p++;
8223 if ((g = (hval & 0xf0000000)) != 0)
8224 hval ^= g >> 24;
8225 hval &= ~g;
8227 return (hval);
8507 int hval = dtrace_hash_str(str) % DTRACE_ERRHASHSZ; local
8515 if (dtrace_errhash[hval].dter_msg == str) {
8516 dtrace_errhash[hval].dter_count++;
8520 if (dtrace_errhash[hval].dter_msg != NULL) {
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/config/mcore/
Dconstraints.md84 (match_test "insn_const_int_ok_for_constraint (hval, CONSTRAINT_I)")
/netbsd/src/external/gpl3/gcc/dist/gcc/config/frv/
Dconstraints.md146 (match_test "hval == 0 && lval == 0"))
/netbsd/src/external/gpl3/gdb/dist/bfd/
Dxcofflink.c6808 bfd_vma hval; in xcoff_reloc_link_order() local
6841 hval = h->root.u.def.value; in xcoff_reloc_link_order()
6843 hval = 0; in xcoff_reloc_link_order()
6849 + hval); in xcoff_reloc_link_order()
/netbsd/src/external/gpl3/binutils/dist/bfd/
Dxcofflink.c6802 bfd_vma hval; in xcoff_reloc_link_order() local
6835 hval = h->root.u.def.value; in xcoff_reloc_link_order()
6837 hval = 0; in xcoff_reloc_link_order()
6843 + hval); in xcoff_reloc_link_order()
/netbsd/src/external/gpl3/gcc/dist/gcc/
Drtl.def1047 `hval' - CONST_DOUBLE_HIGH(op), if op is an integer CONST_DOUBLE.
1051 Do not use ival/hval/lval/rval if op is not the appropriate kind of
/netbsd/src/external/apache2/mDNSResponder/dist/mDNSCore/
DmDNS.c12849 mDNSs8 hval = 0; in GetValueForMACAddr() local
12855 hval = HexVal(*ptr); in GetValueForMACAddr()
12856 if (hval != -1) in GetValueForMACAddr()
12859 val |= hval; in GetValueForMACAddr()
12884 int hval; in GetValueForIPv6Addr() local
12901 hval = HexVal(*ptr); in GetValueForIPv6Addr()
12902 if (hval != -1) in GetValueForIPv6Addr()
12905 value |= hval; in GetValueForIPv6Addr()
/netbsd/src/external/gpl3/gcc/dist/gcc/doc/
Dtm.texi.in8135 There is no equivalent to @code{hval} and @code{lval} for
8139 Most ports only check that @code{hval} is either 0 or -1 to see if the
8144 However, all the current code does is pass the hval and lval to C

12