Home
last modified time | relevance | path

Searched refs:nHash (Results 1 – 4 of 4) sorted by relevance

/sqlite-3.40.0/src/
H A Dpcache1.c544 nNew = p->nHash*2; in pcache1ResizeHash()
555 for(i=0; i<p->nHash; i++){ in pcache1ResizeHash()
567 p->nHash = nNew; in pcache1ResizeHash()
654 assert( pCache->nHash > 0 ); in pcache1TruncateUnsafe()
666 h = pCache->nHash/2; in pcache1TruncateUnsafe()
672 assert( h<pCache->nHash ); in pcache1TruncateUnsafe()
686 h = (h+1) % pCache->nHash; in pcache1TruncateUnsafe()
801 if( pCache->nHash==0 ){ in pcache1Create()
1061 assert( pCache->nHash>0 ); in pcache1Fetch()
1130 hOld = iOld%pCache->nHash; in pcache1Rekey()
[all …]
/sqlite-3.40.0/ext/misc/
H A Dfossildelta.c330 int nHash; /* Number of hash table entries */ in delta_create() local
357 nHash = lenSrc/NHASH; in delta_create()
358 collide = sqlite3_malloc64( (sqlite3_int64)nHash*2*sizeof(int) ); in delta_create()
359 memset(collide, -1, nHash*2*sizeof(int)); in delta_create()
360 landmark = &collide[nHash]; in delta_create()
362 int hv = hash_once(&zSrc[i]) % nHash; in delta_create()
381 hv = hash_32bit(&h) % nHash; in delta_create()
/sqlite-3.40.0/tool/
H A Dsqldiff.c996 int nHash; /* Number of hash table entries */ in rbuDeltaCreate() local
1023 nHash = lenSrc/NHASH; in rbuDeltaCreate()
1024 collide = sqlite3_malloc( nHash*2*sizeof(int) ); in rbuDeltaCreate()
1025 landmark = &collide[nHash]; in rbuDeltaCreate()
1026 memset(landmark, -1, nHash*sizeof(int)); in rbuDeltaCreate()
1027 memset(collide, -1, nHash*sizeof(int)); in rbuDeltaCreate()
1031 hv = hash_32bit(&h) % nHash; in rbuDeltaCreate()
1050 hv = hash_32bit(&h) % nHash; in rbuDeltaCreate()
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_file.c246 int nHash; /* Number of hash slots in hash table */ member
543 static int fsHashKey(int nHash, LsmPgno iPg){ in fsHashKey() argument
544 return (iPg % nHash); in fsHashKey()
652 pFS->nHash = 4096; in lsmFsOpen()
728 memset(pFS->apHash, 0, pFS->nHash*sizeof(pFS->apHash[0])); in lsmFsConfigure()
1018 iHash = fsHashKey(pFS->nHash, pPg->iPg); in fsPageRemoveFromHash()
1063 int iHash = fsHashKey(pFS->nHash, iPg); in fsPageFindInHash()
2660 int iHash = fsHashKey(pFS->nHash, iPg); in fsRemoveHashEntry()
2668 iHash = fsHashKey(pFS->nHash, 0); in fsRemoveHashEntry()
2704 iHash = fsHashKey(pFS->nHash, pPg->iPg); in lsmFsPagePersist()
[all …]