Lines Matching refs:hashv
136 #define HASH_BLOOM_ADD(tbl,hashv) \ argument
137 HASH_BLOOM_BITSET((tbl)->bloom_bv, (hashv & (uint32_t)((1ULL << (tbl)->bloom_nbits) - 1)))
139 #define HASH_BLOOM_TEST(tbl,hashv) \ argument
140 HASH_BLOOM_BITTEST((tbl)->bloom_bv, (hashv & (uint32_t)((1ULL << (tbl)->bloom_nbits) - 1)))
145 #define HASH_BLOOM_ADD(tbl,hashv) argument
146 #define HASH_BLOOM_TEST(tbl,hashv) (1) argument
200 (add)->hh.hashv, _ha_bkt); \
202 HASH_BLOOM_ADD((head)->hh.tbl,(add)->hh.hashv); \
207 #define HASH_TO_BKT( hashv, num_bkts, bkt ) \ argument
209 bkt = ((hashv) & ((num_bkts) - 1)); \
252 HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \
364 #define HASH_BER(key,keylen,num_bkts,hashv,bkt) \ argument
368 (hashv) = 0; \
369 while (_hb_keylen--) { (hashv) = (((hashv) << 5) + (hashv)) + *_hb_key++; } \
370 bkt = (hashv) & (num_bkts-1); \
376 #define HASH_SAX(key,keylen,num_bkts,hashv,bkt) \ argument
380 hashv = 0; \
382 hashv ^= (hashv << 5) + (hashv >> 2) + _hs_key[_sx_i]; \
383 bkt = hashv & (num_bkts-1); \
386 #define HASH_FNV(key,keylen,num_bkts,hashv,bkt) \ argument
390 hashv = 2166136261UL; \
392 hashv = hashv ^ _hf_key[_fn_i]; \
393 hashv = hashv * 16777619; \
395 bkt = hashv & (num_bkts-1); \
398 #define HASH_OAT(key,keylen,num_bkts,hashv,bkt) \ argument
402 hashv = 0; \
404 hashv += _ho_key[_ho_i]; \
405 hashv += (hashv << 10); \
406 hashv ^= (hashv >> 6); \
408 hashv += (hashv << 3); \
409 hashv ^= (hashv >> 11); \
410 hashv += (hashv << 15); \
411 bkt = hashv & (num_bkts-1); \
427 #define HASH_JEN(key,keylen,num_bkts,hashv,bkt) \ argument
431 hashv = 0xfeedbeef; \
441 hashv += (_hj_key[8] + ( (unsigned)_hj_key[9] << 8 ) \
445 HASH_JEN_MIX(_hj_i, _hj_j, hashv); \
450 hashv += keylen; \
452 case 11: hashv += ( (unsigned)_hj_key[10] << 24 ); \
453 case 10: hashv += ( (unsigned)_hj_key[9] << 16 ); \
454 case 9: hashv += ( (unsigned)_hj_key[8] << 8 ); \
467 HASH_JEN_MIX(_hj_i, _hj_j, hashv); \
468 bkt = hashv & (num_bkts-1); \
482 #define HASH_SFH(key,keylen,num_bkts,hashv,bkt) \ argument
489 hashv = 0xcafebabe; \
493 hashv += get16bits (_sfh_key); \
494 _sfh_tmp = (uint32_t)(get16bits (_sfh_key+2)) << 11 ^ hashv; \
495 hashv = (hashv << 16) ^ _sfh_tmp; \
497 hashv += hashv >> 11; \
502 case 3: hashv += get16bits (_sfh_key); \
503 hashv ^= hashv << 16; \
504 hashv ^= (uint32_t)(_sfh_key[sizeof (uint16_t)] << 18); \
505 hashv += hashv >> 11; \
507 case 2: hashv += get16bits (_sfh_key); \
508 hashv ^= hashv << 11; \
509 hashv += hashv >> 17; \
511 case 1: hashv += *_sfh_key; \
512 hashv ^= hashv << 10; \
513 hashv += hashv >> 1; \
517 hashv ^= hashv << 3; \
518 hashv += hashv >> 5; \
519 hashv ^= hashv << 4; \
520 hashv += hashv >> 17; \
521 hashv ^= hashv << 25; \
522 hashv += hashv >> 6; \
523 bkt = hashv & (num_bkts-1); \
568 #define HASH_MUR(key,keylen,num_bkts,hashv,bkt) \ argument
602 hashv = _mur_h1; \
603 bkt = hashv & (num_bkts-1); \
700 HASH_TO_BKT( _he_thh->hashv, tbl->num_buckets*2, _he_bkt); \
841 _dst_hh->hashv = _src_hh->hashv; \
851 HASH_TO_BKT(_dst_hh->hashv, _dst_hh->tbl->num_buckets, _dst_bkt); \
960 unsigned hashv; /* result of hash-fcn(key) */ member