Lines Matching refs:new_size
33293 /* Resize the hash table so that it cantains "new_size" buckets.
33299 static int rehash(Hash *pH, unsigned int new_size){
33304 if( new_size*sizeof(struct _ht)>SQLITE_MALLOC_SOFT_LIMIT ){
33305 new_size = SQLITE_MALLOC_SOFT_LIMIT/sizeof(struct _ht);
33307 if( new_size==pH->htsize ) return 0;
33319 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) );
33325 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht);
33326 memset(new_ht, 0, new_size*sizeof(struct _ht));
33328 unsigned int h = strHash(elem->pKey) % new_size;
178145 /* Resize the hash table so that it cantains "new_size" buckets.
178146 ** "new_size" must be a power of 2. The hash table might fail
178151 static int fts3Rehash(Fts3Hash *pH, int new_size){
178156 assert( (new_size & (new_size-1))==0 );
178157 new_ht = (struct _fts3ht *)fts3HashMalloc( new_size*sizeof(struct _fts3ht) );
178161 pH->htsize = new_size;
178164 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);