Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/cmd/vtfontcvt/
H A Dfnv_hash.h26 hval *= FNV_32_PRIME; in fnv_32_buf()
27 hval ^= *s++; in fnv_32_buf()
29 return (hval); in fnv_32_buf()
39 hval *= FNV_32_PRIME; in fnv_32_str()
40 hval ^= c; in fnv_32_str()
42 return (hval); in fnv_32_str()
51 hval *= FNV_64_PRIME; in fnv_64_buf()
52 hval ^= *s++; in fnv_64_buf()
54 return (hval); in fnv_64_buf()
65 hval ^= c; in fnv_64_str()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dhtable.c462 const uint32_t hval in uid_insert() argument
477 x->hval != hval) { in uid_insert()
517 x->hval = hval; in uid_insert()
707 uint32_t hval; in htab_add() local
781 items[i].hval = hval; in htab_add()
849 uint32_t hval; in htab_remove() local
856 hval = x->hval; in htab_remove()
975 uint32_t hval; in htab_lookup() local
982 hval = x->hval; in htab_lookup()
1024 x->hval = hval; in htab_lookup()
[all …]
H A Disns_htab.h45 uint32_t hval; member
52 uint32_t hval; member
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dhash.c36 unsigned int hval = 0; in elf_hash() local
40 hval = (hval << 4) + *ename++; in elf_hash()
41 if ((g = (hval & 0xf0000000)) != 0) in elf_hash()
42 hval ^= g >> 24; in elf_hash()
43 hval &= ~g; in elf_hash()
45 return ((unsigned long)hval); in elf_hash()
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_item.cc107 u_int hval = 0; in get_hashval() local
113 hval = ((hval<<HASHSHIFT)^hval); in get_hashval()
114 hval += (LOWER(value[i]) & HASHMASK); in get_hashval()
118 hval = ((hval<<HASHSHIFT)^hval); in get_hashval()
119 hval += (value[i] & HASHMASK); in get_hashval()
123 return (hval); in get_hashval()
H A Ddb_index_entry.cc50 db_index_entry::db_index_entry(unsigned long hval, item* k, in db_index_entry() argument
60 hashval = hval; in db_index_entry()
146 if ((np->hashval == hval) && in getnext()
163 db_index_entry::lookup(bool_t casein, unsigned long hval, in lookup() argument
169 if (np->hashval == hval && np->key->equal(i, casein) && in lookup()
186 db_index_entry::lookup(bool_t casein, unsigned long hval, in lookup() argument
205 if ((curr->hashval == hval) && in lookup()
231 unsigned long hval, item *i, entryp recnum) in remove() argument
237 if (np->hashval == hval && np->key->equal(i, casein) && in remove()
277 unsigned long hval, item *i, entryp recnum) in add() argument
[all …]
H A Ddb_index.cc190 unsigned long hval; in lookup() local
199 hval = index_value->get_hashval(case_insens); in lookup()
200 bucket = hval % table_size; in lookup()
205 ret = fst->lookup(case_insens, hval, in lookup()
228 unsigned long hval; in remove() local
240 hval = index_value->get_hashval(case_insens); in remove()
242 bucket = hval % table_size; in remove()
268 unsigned long hval; in add() local
273 hval = index_value->get_hashval(case_insens); in add()
280 bucket = hval %table_size; in add()
[all …]
H A Ddb_dictionary.cc268 if (np->hashval == hval && in search_bucket()
293 if (np->hashval == hval && in remove_from_bucket()
450 u_int hval = 0; in get_hashval() local
454 hval = ((hval<<HASHSHIFT)^hval); in get_hashval()
458 return (hval); in get_hashval()
491 unsigned long hval; in search_dictionary() local
497 hval = get_hashval(target); in search_dictionary()
517 unsigned long hval; in remove_from_dictionary() local
525 hval = get_hashval(target); in remove_from_dictionary()
556 unsigned long hval; in add_to_dictionary() local
[all …]
H A Ddb_index_entry_c.x93 % db_index_entry( unsigned long hval, item *, entryp, db_index_entry *n);
159 % bool_t add( db_index_entry **oldhead, bool_t, unsigned long hval, item *,
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c564 int hval; in bsd_compress() local
755 disp = (hval == 0) ? 1 : hval; in bsd_compress()
758 hval += disp; in bsd_compress()
760 hval -= db->hsize; in bsd_compress()
907 long hval; in bsd_incomp() local
986 disp = (hval == 0) ? 1 : hval; in bsd_incomp()
988 hval += disp; in bsd_incomp()
990 hval -= db->hsize; in bsd_incomp()
1392 int hval; in bsd_decompress() local
1404 disp = (hval == 0) ? 1 : hval; in bsd_decompress()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dbsd-comp.c441 long hval, disp; local
466 dictp = &db->dict[hval];
477 disp = (hval == 0) ? 1 : hval;
479 hval += disp;
481 hval -= db->hsize;
505 dictp2->cptr = hval;
694 int hval, disp; local
702 disp = (hval == 0) ? 1 : hval;
704 hval += disp;
706 hval -= db->hsize;
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dfastlz.c206 unsigned int hval; in FASTLZ_COMPRESSOR() local
256 HASH_FUNCTION(hval, ip); in FASTLZ_COMPRESSOR()
257 hslot = htab + hval; in FASTLZ_COMPRESSOR()
258 ref = htab[hval]; in FASTLZ_COMPRESSOR()
398 HASH_FUNCTION(hval, ip); in FASTLZ_COMPRESSOR()
399 htab[hval] = ip++; in FASTLZ_COMPRESSOR()
400 HASH_FUNCTION(hval, ip); in FASTLZ_COMPRESSOR()
401 htab[hval] = ip++; in FASTLZ_COMPRESSOR()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnss_dbdefs.c302 uint32_t hval, g; in nss_dbop_search() local
313 hval = 0; in nss_dbop_search()
315 hval = (hval << 4) + *cp++; in nss_dbop_search()
317 hval ^= g >> 24; in nss_dbop_search()
318 hval &= ~g; in nss_dbop_search()
336 hval = 0; in nss_dbop_search()
338 hval = (hval << 4) + *cp++; in nss_dbop_search()
340 hval ^= g >> 24; in nss_dbop_search()
341 hval &= ~g; in nss_dbop_search()
343 hval += dbop; in nss_dbop_search()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_dbimpl.c90 unsigned int hval = 0; in calc_hash() local
99 hval = (hval << 4) + ch; in calc_hash()
100 if ((g = (hval & 0xf0000000)) != 0) in calc_hash()
101 hval ^= g >> 24; in calc_hash()
102 hval &= ~g; in calc_hash()
104 return ((unsigned long)hval); in calc_hash()
H A Dcache.c345 hval = 0; \
348 hval = (hval << 4) + func(*str++); \
351 hval &= ~g; \
362 uint_t hval; in cis_gethash() local
366 return (hval); in cis_gethash()
376 uint_t hval; in ces_gethash() local
398 hval += (hval << 10); in db_gethash()
399 hval ^= (hval >> 6); in db_gethash()
401 hval += (hval << 3); in db_gethash()
402 hval ^= (hval >> 11); in db_gethash()
[all …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c406 uint32_t hval; in relativize_v6() local
409 hval = ntohl(*val); in relativize_v6()
410 if (hval != DHCPV6_INFTIME) { in relativize_v6()
411 if (hval < time_diff) in relativize_v6()
414 *val = htonl(hval - time_diff); in relativize_v6()
/illumos-gate/usr/src/cmd/mdb/common/modules/dtrace/
H A Ddtrace.c1987 int hval = 0; in dtrace_hashstat_additive() local
1998 uint64_t hval = 0; in dtrace_hashstat_shifty() local
2027 hval = (hval << 4) ^ (hval >> 28) ^ data->dthsd_data[i]; in dtrace_hashstat_knuth()
2036 uint32_t hval = 0; in dtrace_hashstat_oneatatime() local
2040 hval += (hval << 10); in dtrace_hashstat_oneatatime()
2041 hval ^= (hval >> 6); in dtrace_hashstat_oneatatime()
2044 hval += (hval << 3); in dtrace_hashstat_oneatatime()
2045 hval ^= (hval >> 11); in dtrace_hashstat_oneatatime()
2046 hval += (hval << 15); in dtrace_hashstat_oneatatime()
2055 uint32_t hval = 0; in dtrace_hashstat_fnv() local
[all …]
/illumos-gate/usr/src/ucbcmd/mkstr/
H A Dmkstr.c262 long hval; member
285 if (hp->hval == hashval) { in hashit()
294 hp->hval = hashval; in hashit()
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_mapping.c42 unsigned int hval = 0; in ns_hash() local
47 hval = (hval << 4) + tolower(*str++); in ns_hash()
48 if ((g = (hval & 0xf0000000)) != 0) in ns_hash()
49 hval ^= g >> 24; in ns_hash()
50 hval &= ~g; in ns_hash()
52 return ((unsigned long)hval); in ns_hash()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c1139 int hval; in rm_link_from_hash() local
1148 hval = hashfn(hdp, clp->path); in rm_link_from_hash()
1149 pp = &(CACHE_HASH(hdp, hval)); in rm_link_from_hash()
1164 int hval; in link_hash() local
1170 hval = hashfn(hdp, link); in link_hash()
1913 int hval; in synchronize_db() local
1931 for (hval = 0; hval < CACHE(hdp)->hash_sz; hval++) { in synchronize_db()
2799 uint_t hval; in hash_insert() local
2803 CACHE_HASH(hdp, hval) = clp; in hash_insert()
3046 ulong_t hval = 0; in hashfn() local
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspd.c3166 uint32_t hval; in ipsec_act_find() local
3371 uint32_t hval, bucket; in ipsec_find_sel() local
3380 hval = selkey_hash(selkey, ns); in ipsec_find_sel()
3382 selkey->ipsl_sel_hval = hval; in ipsec_find_sel()
3384 bucket = (hval == IPSEC_SEL_NOHASH) ? 0 : hval; in ipsec_find_sel()
3430 if (hval == IPSEC_SEL_NOHASH) in ipsec_sel_rel()
3431 hval = 0; in ipsec_sel_rel()
4544 uint32_t hval = idtype; in ipsid_hash() local
4548 hval = (hval << 4) | (hval >> 28); in ipsid_hash()
4549 hval ^= c; in ipsid_hash()
[all …]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Ddbutils.c3334 uint_t hval, i, len; in gethash() local
3339 hval += str[i]; in gethash()
3340 hval += (hval << 10); in gethash()
3341 hval ^= (hval >> 6); in gethash()
3344 hval += str[i]; in gethash()
3345 hval += (hval << 10); in gethash()
3346 hval ^= (hval >> 6); in gethash()
3348 hval += (hval << 3); in gethash()
3349 hval ^= (hval >> 11); in gethash()
3350 hval += (hval << 15); in gethash()
[all …]
/illumos-gate/usr/src/uts/common/dtrace/
H A Dfasttrap.c220 uint_t hval = 0; in fasttrap_hash_str() local
223 hval = (hval << 4) + *p++; in fasttrap_hash_str()
224 if ((g = (hval & 0xf0000000)) != 0) in fasttrap_hash_str()
225 hval ^= g >> 24; in fasttrap_hash_str()
226 hval &= ~g; in fasttrap_hash_str()
228 return (hval); in fasttrap_hash_str()
/illumos-gate/usr/src/uts/common/os/
H A Dcyclic.c647 uint_t hval; in cyclic_coverage_hash() local
649 hval = 0; in cyclic_coverage_hash()
651 hval = (hval << 4) + *p++; in cyclic_coverage_hash()
652 if ((g = (hval & 0xf0000000)) != 0) in cyclic_coverage_hash()
653 hval ^= g >> 24; in cyclic_coverage_hash()
654 hval &= ~g; in cyclic_coverage_hash()
656 return (hval); in cyclic_coverage_hash()
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr_getldap.c213 unsigned int hval = 0; in getldap_hash() local
218 hval = (hval << 4) + tolower(*str++); in getldap_hash()
219 if ((g = (hval & 0xf0000000)) != 0) in getldap_hash()
220 hval ^= g >> 24; in getldap_hash()
221 hval &= ~g; in getldap_hash()
223 return ((unsigned long)hval); in getldap_hash()

12