Lines Matching defs:new_size
35417 /* Resize the hash table so that it cantains "new_size" buckets.
35423 static int rehash(Hash *pH, unsigned int new_size){
35428 if( new_size*sizeof(struct _ht)>SQLITE_MALLOC_SOFT_LIMIT ){
35429 new_size = SQLITE_MALLOC_SOFT_LIMIT/sizeof(struct _ht);
35431 if( new_size==pH->htsize ) return 0;
35443 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) );
35449 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht);
35450 memset(new_ht, 0, new_size*sizeof(struct _ht));
35452 unsigned int h = strHash(elem->pKey) % new_size;
187805 /* Resize the hash table so that it cantains "new_size" buckets.
187806 ** "new_size" must be a power of 2. The hash table might fail
187811 static int fts3Rehash(Fts3Hash *pH, int new_size){
187816 assert( (new_size & (new_size-1))==0 );
187817 new_ht = (struct _fts3ht *)fts3HashMalloc( new_size*sizeof(struct _fts3ht) );
187821 pH->htsize = new_size;
187824 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);