Searched refs:hashmask (Results 1 – 3 of 3) sorted by relevance
/haiku/src/libs/libsolv/solv/ |
H A D | strpool.c | 82 Hashval h, hh, hashmask, oldhashmask; in stringpool_strn2id() local 92 hashmask = oldhashmask = ss->stringhashmask; in stringpool_strn2id() 96 if (ss->nstrings * 2 > hashmask) in stringpool_strn2id() 101 ss->stringhashmask = hashmask = mkmask(ss->nstrings + STRING_BLOCK); in stringpool_strn2id() 102 ss->stringhashtbl = hashtbl = (Hashtable)solv_calloc(hashmask + 1, sizeof(Id)); in stringpool_strn2id() 107 h = strhash(ss->stringspace + ss->strings[i]) & hashmask; in stringpool_strn2id() 110 h = HASHCHAIN_NEXT(h, hh, hashmask); in stringpool_strn2id() 116 h = strnhash(str, len) & hashmask; in stringpool_strn2id() 123 h = HASHCHAIN_NEXT(h, hh, hashmask); in stringpool_strn2id()
|
H A D | poolid.c | 57 Hashval h, hh, hashmask; in pool_rel2id() local 63 hashmask = pool->relhashmask; in pool_rel2id() 68 if (pool->nrels * 2 > hashmask) in pool_rel2id() 71 pool->relhashmask = hashmask = mkmask(pool->nrels + REL_BLOCK); in pool_rel2id() 72 pool->relhashtbl = hashtbl = solv_calloc(hashmask + 1, sizeof(Id)); in pool_rel2id() 76 h = relhash(ran[i].name, ran[i].evr, ran[i].flags) & hashmask; in pool_rel2id() 79 h = HASHCHAIN_NEXT(h, hh, hashmask); in pool_rel2id() 85 h = relhash(name, evr, flags) & hashmask; in pool_rel2id() 91 h = HASHCHAIN_NEXT(h, hh, hashmask); in pool_rel2id()
|
H A D | repo_solv.c | 456 Hashval hashmask, h, hh; in repo_add_solv() local 677 hashmask = mkmask(spool->nstrings + numid); in repo_add_solv() 680 …POOL_DEBUG(SOLV_DEBUG_STATS, "string hash buckets: %d, old %d\n", hashmask + 1, spool->stringhashm… in repo_add_solv() 682 if (hashmask > spool->stringhashmask) in repo_add_solv() 685 spool->stringhashmask = hashmask; in repo_add_solv() 686 spool->stringhashtbl = hashtbl = solv_calloc(hashmask + 1, sizeof(Id)); in repo_add_solv() 689 h = strhash(spool->stringspace + spool->strings[i]) & hashmask; in repo_add_solv() 692 h = HASHCHAIN_NEXT(h, hh, hashmask); in repo_add_solv() 699 hashmask = spool->stringhashmask; in repo_add_solv() 725 h = strhash(sp) & hashmask; in repo_add_solv() [all …]
|