Home
last modified time | relevance | path

Searched refs:LogEst (Results 1 – 16 of 16) sorted by relevance

/sqlite-3.40.0/tool/
H A Dlogest.c39 typedef short int LogEst; /* 10 times log2() */ typedef
41 LogEst logEstMultiply(LogEst a, LogEst b){ return a+b; } in logEstMultiply()
42 LogEst logEstAdd(LogEst a, LogEst b){ in logEstAdd()
54 if( a<b ){ LogEst t = a; a = b; b = t; } in logEstAdd()
59 LogEst logEstFromInteger(sqlite3_uint64 x){ in logEstFromInteger()
61 LogEst y = 40; in logEstFromInteger()
71 static sqlite3_uint64 logEstToInt(LogEst x){ in logEstToInt()
82 static LogEst logEstFromDouble(double x){ in logEstFromDouble()
84 LogEst e; in logEstFromDouble()
126 LogEst a[100]; in main()
[all …]
/sqlite-3.40.0/src/
H A DwhereInt.h136 LogEst rSetup; /* One-time setup cost (ex: create transient index) */
137 LogEst rRun; /* Cost of running each loop */
138 LogEst nOut; /* Estimated number of output rows */
174 LogEst rRun; /* Cost of running this subquery */
175 LogEst nOut; /* Number of outputs for this subquery */
209 LogEst nRow; /* Estimated number of rows generated by this path */
210 LogEst rCost; /* Total cost of this path */
211 LogEst rUnsorted; /* Total cost of this path ignoring sorting costs */
270 LogEst truthProb; /* Probability of truth for this expression */
476 LogEst iLimit; /* LIMIT if wctrlFlags has WHERE_USE_LIMIT */
[all …]
H A Dutil.c1540 LogEst sqlite3LogEstAdd(LogEst a, LogEst b){ in sqlite3LogEstAdd()
1567 LogEst sqlite3LogEst(u64 x){ in sqlite3LogEst()
1568 static LogEst a[] = { 0, 2, 3, 5, 6, 7, 8, 9 }; in sqlite3LogEst()
1569 LogEst y = 40; in sqlite3LogEst()
1590 LogEst sqlite3LogEstFromDouble(double x){ in sqlite3LogEstFromDouble()
1592 LogEst e; in sqlite3LogEstFromDouble()
1604 u64 sqlite3LogEstToInt(LogEst x){ in sqlite3LogEstToInt()
H A Dwhere.c651 static LogEst estLog(LogEst N){ in estLog()
1625 static LogEst whereRangeAdjust(WhereTerm *pTerm, LogEst nNew){ in whereRangeAdjust()
1626 LogEst nRet = nNew; in whereRangeAdjust()
1810 LogEst nNew; in whereRangeScanEst()
2845 LogEst rCostIdx; in whereLoopAddBtreeIndex()
2911 LogEst M, logK, x; in whereLoopAddBtreeIndex()
3155 LogEst nIter; in whereLoopAddBtreeIndex()
4728 LogEst nRow, in whereSortingCost()
4746 LogEst rScale, rSortCost; in whereSortingCost()
4839 aSortCost = (LogEst*)pX; in wherePathSolver()
[all …]
H A DsqliteInt.h855 typedef INT16_TYPE LogEst; typedef
2287 LogEst szTabRow; /* Estimated size of each table row in bytes */
2289 LogEst costMult; /* Cost multiplier for using this table */
2620 LogEst szIdxRow; /* Estimated average row size in bytes */
3347 LogEst nSelectRow; /* Estimated number of result rows */
4199 LogEst nRowEst; /* Estimated number of rows in the table */
4738 LogEst sqlite3WhereOutputRowCount(WhereInfo*);
4949 LogEst sqlite3LogEst(u64);
4950 LogEst sqlite3LogEstAdd(LogEst,LogEst);
4951 LogEst sqlite3LogEstFromDouble(double);
[all …]
H A Dbuild.c2181 nByte = (sizeof(char*) + sizeof(LogEst) + sizeof(i16) + 1)*N; in resizeIndexObject()
2187 memcpy(zExtra, pIdx->aiRowLogEst, sizeof(LogEst)*(pIdx->nKeyCol+1)); in resizeIndexObject()
2188 pIdx->aiRowLogEst = (LogEst*)zExtra; in resizeIndexObject()
2189 zExtra += sizeof(LogEst)*N; in resizeIndexObject()
3850 ROUND8(sizeof(LogEst)*(nCol+1) + /* Index.aiRowLogEst */ in sqlite3AllocateIndexObject()
3857 p->aiRowLogEst = (LogEst*)pExtra; pExtra += sizeof(LogEst)*(nCol+1); in sqlite3AllocateIndexObject()
4515 static const LogEst aVal[] = { 33, 32, 30, 28, 26 }; in sqlite3DefaultRowEst()
4516 LogEst *a = pIdx->aiRowLogEst; in sqlite3DefaultRowEst()
4517 LogEst x; in sqlite3DefaultRowEst()
4544 memcpy(&a[1], aVal, nCopy*sizeof(LogEst)); in sqlite3DefaultRowEst()
H A Dvdbe.h387 void sqlite3VdbeScanStatus(Vdbe*, int, int, int, LogEst, const char*);
H A DvdbeInt.h397 LogEst nEst; /* Estimated output rows per loop */
H A Danalyze.c1467 LogEst *aLog, /* Or, if aOut==0, here */
H A Dvdbeapi.c2129 LogEst x = pScan->nEst; in sqlite3_stmt_scanstatus()
H A Dpragma.c2334 LogEst szThreshold; /* Size threshold above which reanalysis is needd */ in sqlite3Pragma()
H A Dmain.c4433 LogEst rLogEst = sqlite3LogEstFromDouble(rIn); in sqlite3_test_control()
H A Dvdbeaux.c1114 LogEst nEst, /* Estimated number of output rows */ in sqlite3VdbeScanStatus()
/sqlite-3.40.0/
H A Dmain.mk1077 LogEst$(EXE): $(TOP)/tool/logest.c sqlite3.h
1078 $(TCC) -o LogEst$(EXE) $(TOP)/tool/logest.c
1137 rm -f LogEst LogEst.exe
H A DMakefile.msc2603 LogEst.exe: $(TOP)\tool\logest.c $(SQLITE3H)
2604 $(LTLINK) $(NO_WARN) $(TOP)\tool\LogEst.c /link $(LDFLAGS) $(LTLINKOPTS)
2659 del /Q LogEst.exe fts3view.exe rollback-test.exe showdb.exe dbdump.exe 2>NUL
H A DMakefile.in1404 LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h
1504 rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE)