• Home
  • Raw
  • Download

Lines Matching refs:hashv

114 #define HASH_VALUE(keyptr,keylen,hashv)                                          \  argument
116 HASH_FCN(keyptr, keylen, hashv); \
158 #define HASH_BLOOM_ADD(tbl,hashv) \ argument
159 HASH_BLOOM_BITSET((tbl)->bloom_bv, (hashv & (uint32_t)((1ULL << (tbl)->bloom_nbits) - 1U)))
161 #define HASH_BLOOM_TEST(tbl,hashv) \ argument
162 HASH_BLOOM_BITTEST((tbl)->bloom_bv, (hashv & (uint32_t)((1ULL << (tbl)->bloom_nbits) - 1U)))
167 #define HASH_BLOOM_ADD(tbl,hashv) argument
168 #define HASH_BLOOM_TEST(tbl,hashv) (1) argument
236 (add)->hh.hashv = (hashval); \
287 (add)->hh.hashv = (hashval); \
320 #define HASH_TO_BKT(hashv,num_bkts,bkt) \ argument
322 bkt = ((hashv) & ((num_bkts) - 1U)); \
365 HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \
477 #define HASH_BER(key,keylen,hashv) \ argument
481 (hashv) = 0; \
483 (hashv) = (((hashv) << 5) + (hashv)) + *_hb_key++; \
490 #define HASH_SAX(key,keylen,hashv) \ argument
494 hashv = 0; \
496 hashv ^= (hashv << 5) + (hashv >> 2) + _hs_key[_sx_i]; \
500 #define HASH_FNV(key,keylen,hashv) \ argument
504 hashv = 2166136261U; \
506 hashv = hashv ^ _hf_key[_fn_i]; \
507 hashv = hashv * 16777619U; \
511 #define HASH_OAT(key,keylen,hashv) \ argument
515 hashv = 0; \
517 hashv += _ho_key[_ho_i]; \
518 hashv += (hashv << 10); \
519 hashv ^= (hashv >> 6); \
521 hashv += (hashv << 3); \
522 hashv ^= (hashv >> 11); \
523 hashv += (hashv << 15); \
539 #define HASH_JEN(key,keylen,hashv) \ argument
543 hashv = 0xfeedbeefu; \
553 hashv += (_hj_key[8] + ( (unsigned)_hj_key[9] << 8 ) \
557 HASH_JEN_MIX(_hj_i, _hj_j, hashv); \
562 hashv += (unsigned)(keylen); \
564 case 11: hashv += ( (unsigned)_hj_key[10] << 24 ); /* FALLTHROUGH */ \
565 case 10: hashv += ( (unsigned)_hj_key[9] << 16 ); /* FALLTHROUGH */ \
566 case 9: hashv += ( (unsigned)_hj_key[8] << 8 ); /* FALLTHROUGH */ \
576 HASH_JEN_MIX(_hj_i, _hj_j, hashv); \
590 #define HASH_SFH(key,keylen,hashv) \ argument
597 hashv = 0xcafebabeu; \
601 hashv += get16bits (_sfh_key); \
602 _sfh_tmp = ((uint32_t)(get16bits (_sfh_key+2)) << 11) ^ hashv; \
603 hashv = (hashv << 16) ^ _sfh_tmp; \
605 hashv += hashv >> 11; \
610 case 3: hashv += get16bits (_sfh_key); \
611 hashv ^= hashv << 16; \
612 hashv ^= (uint32_t)(_sfh_key[sizeof (uint16_t)]) << 18; \
613 hashv += hashv >> 11; \
615 case 2: hashv += get16bits (_sfh_key); \
616 hashv ^= hashv << 11; \
617 hashv += hashv >> 17; \
619 case 1: hashv += *_sfh_key; \
620 hashv ^= hashv << 10; \
621 hashv += hashv >> 1; \
625 hashv ^= hashv << 3; \
626 hashv += hashv >> 5; \
627 hashv ^= hashv << 4; \
628 hashv += hashv >> 17; \
629 hashv ^= hashv << 25; \
630 hashv += hashv >> 6; \
675 #define HASH_MUR(key,keylen,hashv) \ argument
709 hashv = _mur_h1; \
722 if ((out)->hh.hashv == (hashval) && (out)->hh.keylen == (keylen_in)) { \
811 HASH_TO_BKT( _he_thh->hashv, tbl->num_buckets*2U, _he_bkt); \
952 _dst_hh->hashv = _src_hh->hashv; \
962 HASH_TO_BKT(_dst_hh->hashv, _dst_hh->tbl->num_buckets, _dst_bkt); \
1071 unsigned hashv; /* result of hash-fcn(key) */ member