Lines Matching refs:new_size
24905 static int rehash(Hash *pH, unsigned int new_size){
24910 if( new_size*sizeof(struct _ht)>SQLITE_MALLOC_SOFT_LIMIT ){
24911 new_size = SQLITE_MALLOC_SOFT_LIMIT/sizeof(struct _ht);
24913 if( new_size==pH->htsize ) return 0;
24925 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) );
24931 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht);
24932 memset(new_ht, 0, new_size*sizeof(struct _ht));
24934 unsigned int h = strHash(elem->pKey) % new_size;
140920 static int fts3Rehash(Fts3Hash *pH, int new_size){
140925 assert( (new_size & (new_size-1))==0 );
140926 new_ht = (struct _fts3ht *)fts3HashMalloc( new_size*sizeof(struct _fts3ht) );
140930 pH->htsize = new_size;
140933 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1);