Lines Matching refs:sqlite3LogEst
21116 SQLITE_PRIVATE LogEst sqlite3LogEst(u64);
36305 SQLITE_PRIVATE LogEst sqlite3LogEst(u64 x){ function
36333 if( x<=2000000000 ) return sqlite3LogEst((u64)x);
98814 if( ALWAYS(sz>=0) && sqlite3LogEst((u64)sz)<pOp->p3 ) res = 1;
119250 if( aLog ) aLog[i] = sqlite3LogEst(v);
119255 aLog[i] = sqlite3LogEst(v);
119272 pIndex->szIdxRow = sqlite3LogEst(sz);
119278 pIndex->pTable->costMult = sqlite3LogEst(sqlite3Atoi(z+9));
121935 pTable->nRowLogEst = sqlite3LogEst(SQLITE_DEFAULT_ROWEST);
121937 pTable->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) );
122837 pTab->szTabRow = sqlite3LogEst(wTable*4);
122852 pIdx->szIdxRow = sqlite3LogEst(wIndex*4);
125172 assert( 99==sqlite3LogEst(1000) );
125176 if( pIdx->pPartIdxWhere!=0 ){ x -= 10; assert( 10==sqlite3LogEst(2) ); }
125183 a[i] = 23; assert( 23==sqlite3LogEst(5) );
125186 assert( 0==sqlite3LogEst(1) );
140210 szThreshold = pTab->nRowLogEst + 46; assert( sqlite3LogEst(25)==46 );
144201 pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) );
144278 }else if( n>=0 && p->nSelectRow>sqlite3LogEst((u64)n) ){
144279 p->nSelectRow = sqlite3LogEst((u64)n);
144754 && nLimit>0 && p->nSelectRow > sqlite3LogEst((u64)nLimit)
144756 p->nSelectRow = sqlite3LogEst((u64)nLimit);
147512 pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) );
147656 pTab->nRowLogEst = 200; assert( 200==sqlite3LogEst(1048576) );
149784 assert( 66==sqlite3LogEst(100) );
149812 assert( 0==sqlite3LogEst(1) );
159028 pTerm->truthProb = sqlite3LogEst(p->iTable) - 270;
161472 return N<=10 ? 0 : sqlite3LogEst(N) - 33;
162558 nRet -= 20; assert( 20==sqlite3LogEst(4) );
162669 int nAdjust = (sqlite3LogEst(p->nSample) - sqlite3LogEst(nDiff));
162838 nNew = sqlite3LogEst(iUpper - iLower);
162844 assert( 20==sqlite3LogEst(4) );
162846 nNew = 10; assert( 10==sqlite3LogEst(2) );
163871 nIn = 46; assert( 46==sqlite3LogEst(25) );
163883 nIn = sqlite3LogEst(pExpr->x.pList->nExpr);
164025 pNew->nOut = sqlite3LogEst(nOut);
164131 assert( 42==sqlite3LogEst(18) );
164615 pNew->nOut = 43; assert( 43==sqlite3LogEst(20) );
164990 pNew->nOut = sqlite3LogEst(pIdxInfo->estimatedRows);
165912 nCol = sqlite3LogEst((pWInfo->pSelect->pEList->nExpr+59)/30);
165916 rSortCost += sqlite3LogEst((nOrderBy-nSorted)*100/nOrderBy) - 66;
165935 if( nRow>10 ){ nRow -= 10; assert( 10==sqlite3LogEst(2) ); }
166025 aFrom[0].nRow = MIN(pParse->nQueryLoop, 48); assert( 48==sqlite3LogEst(28) );
166059 assert( 10==sqlite3LogEst(2) );
182762 *pI2 = sqlite3LogEst(*pU64);