Lines Matching refs:Bitmask
15408 typedef SQLITE_BITMASK_TYPE Bitmask; typedef
15410 typedef u64 Bitmask; typedef
15416 #define BMS ((int)(sizeof(Bitmask)*8))
15421 #define MASKBIT(n) (((Bitmask)1)<<(n))
15425 #define ALLBITS ((Bitmask)-1)
15426 #define TOPBIT (((Bitmask)1)<<(BMS-1))
18772 Bitmask colNotIdxed; /* Unindexed columns in pTab */
19295 Bitmask colUsed; /* Bit N set if column N used. Details above for N>62 */
21345 SQLITE_PRIVATE Bitmask sqlite3ExprColUsed(Expr*);
106903 SQLITE_PRIVATE Bitmask sqlite3ExprColUsed(Expr *pExpr){
106922 return ((Bitmask)1)<<n;
107613 pItem->colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
112221 Bitmask colUsed; /* Columns of the index used */
112222 Bitmask mCol; /* Mask for the current column */
123672 Bitmask m = 0;
148218 Bitmask colUsed; /* Columns that may not be NULLed out */
148255 colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
148261 Bitmask m = j<BMS-1 ? MASKBIT(j) : TOPBIT;
156898 Bitmask notReady; /* FROM entries not usable at this level */
156919 Bitmask prereq; /* Bitmask of other loops that must run first */
156920 Bitmask maskSelf; /* Bitmask identifying table iTab */
156963 Bitmask prereq; /* Prerequisites */
156997 Bitmask maskLoop; /* Bitmask of all WhereLoop objects in this path */
156998 Bitmask revLoop; /* aLoop[]s that should be reversed for ORDER BY */
157075 Bitmask prereqRight; /* Bitmask of tables used by pExpr->pRight */
157076 Bitmask prereqAll; /* Bitmask of tables referenced by pExpr */
157155 Bitmask indexable; /* Bitmask of all indexable tables in the clause */
157280 Bitmask revMask; /* Mask of ORDER BY terms that need reversing */
157291 SQLITE_PRIVATE Bitmask sqlite3WhereGetMask(WhereMaskSet*,int);
157301 Bitmask notReady, /* RHS must not overlap with this mask */
157335 SQLITE_PRIVATE Bitmask sqlite3WhereCodeOneLoopStart(
157341 Bitmask notReady /* Which tables are currently available */
157354 SQLITE_PRIVATE Bitmask sqlite3WhereExprUsage(WhereMaskSet*, Expr*);
157355 SQLITE_PRIVATE Bitmask sqlite3WhereExprUsageNN(WhereMaskSet*, Expr*);
157356 SQLITE_PRIVATE Bitmask sqlite3WhereExprListUsage(WhereMaskSet*, ExprList*);
158707 Bitmask notReady /* Loops that are not ready */
158776 SQLITE_PRIVATE Bitmask sqlite3WhereCodeOneLoopStart(
158782 Bitmask notReady /* Which tables are currently available */
159944 Bitmask m = sqlite3WhereGetMask(&pWInfo->sMaskSet, pE->w.iJoin);
160159 Bitmask mAll = 0;
160894 Bitmask chngToIN; /* Tables that might satisfy case 1 */
160895 Bitmask indexable; /* Tables that are indexable, satisfying case 2 */
160918 indexable = ~(Bitmask)0;
160919 chngToIN = ~(Bitmask)0;
160930 Bitmask b = 0;
160957 Bitmask b;
161177 static Bitmask exprSelectUsage(WhereMaskSet *pMaskSet, Select *pS){
161178 Bitmask mask = 0;
161308 Bitmask prereqLeft; /* Prerequisites of the pExpr->pLeft */
161309 Bitmask prereqAll; /* Prerequisites of pExpr */
161310 Bitmask extraRight = 0; /* Extra dependencies on LEFT JOIN */
161363 Bitmask x = sqlite3WhereGetMask(pMaskSet, pExpr->w.iJoin);
161718 Bitmask prereqColumn, prereqExpr;
161994 static SQLITE_NOINLINE Bitmask sqlite3WhereExprUsageFull(
161998 Bitmask mask;
162020 SQLITE_PRIVATE Bitmask sqlite3WhereExprUsageNN(WhereMaskSet *pMaskSet, Expr *p){
162029 SQLITE_PRIVATE Bitmask sqlite3WhereExprUsage(WhereMaskSet *pMaskSet, Expr *p){
162032 SQLITE_PRIVATE Bitmask sqlite3WhereExprListUsage(WhereMaskSet *pMaskSet, ExprList *pList){
162034 Bitmask mask = 0;
162322 Bitmask prereq, /* Prerequisites of the new entry */
162357 SQLITE_PRIVATE Bitmask sqlite3WhereGetMask(WhereMaskSet *pMaskSet, int iCursor){
162359 assert( pMaskSet->n<=(int)sizeof(Bitmask)*8 );
162665 Bitmask notReady, /* RHS must not overlap with this mask */
162794 if( 0==sqlite3WhereFindTerm(pWC, iBase, i, ~(Bitmask)0, WO_EQ, pIdx) ){
162971 const Bitmask notReady /* Tables in outer loops of the join */
163053 const Bitmask notReady, /* Mask of cursors that are not available */
163071 Bitmask idxCols; /* Bitmap of columns used for indexing */
163072 Bitmask extraCols; /* Bitmap of additional columns */
163113 Bitmask cMask;
163173 Bitmask cMask;
163312 Bitmask notReady /* Loops that are not ready */
163437 Bitmask mUnusable, /* Ignore terms with these prereqs */
164436 Bitmask mAll = (((Bitmask)1)<<(nb*4)) - 1;
164944 Bitmask notAllowed = ~(pLoop->prereq|pLoop->maskSelf);
165115 Bitmask saved_prereq; /* Original value of pNew->prereq */
165788 Bitmask *pMask, /* Mask to clear bits in */
165830 *pMask &= ~((Bitmask)1 << pLeft->iColumn);
165875 Bitmask mPrereq /* Extra prerequisites for using this table */
166046 Bitmask m;
166216 Bitmask mPrereq, /* Mask of tables that must be used. */
166217 Bitmask mUsable, /* Mask of usable tables */
166542 Bitmask mPrereq, /* Tables that must be scanned before this one */
166543 Bitmask mUnusable /* Tables that must be scanned after this one */
166554 Bitmask mBest; /* Tables used by best possible plan */
166598 Bitmask mPrev = 0;
166599 Bitmask mBestNoIn = 0;
166619 Bitmask mNext = ALLBITS;
166622 Bitmask mThis = (
166673 Bitmask mPrereq,
166674 Bitmask mUnusable
166800 Bitmask mPrereq = 0;
166801 Bitmask mPrior = 0;
166824 Bitmask mUnusable = 0;
166904 Bitmask *pRevMask /* OUT: Mask of WhereLoops to run in reverse order */
166926 Bitmask obSat = 0; /* Mask of ORDER BY terms satisfied so far */
166927 Bitmask obDone; /* Mask of all ORDER BY terms */
166928 Bitmask orderDistinctMask; /* Mask of all well-ordered loops */
166929 Bitmask ready; /* Mask of inner loops */
167200 Bitmask mTerm;
167214 Bitmask m = ALWAYS(i<BMS) ? MASKBIT(i) - 1 : 0;
167437 Bitmask maskNew; /* Mask of src visited by (..) */
167438 Bitmask revMask; /* Mask of rev-order loops for (..) */
167659 Bitmask notUsed;
167685 Bitmask m = 0;
167706 Bitmask revMask = 0;
167993 static SQLITE_NOINLINE Bitmask whereOmitNoopJoin(
167995 Bitmask notReady
167998 Bitmask tabUsed;
168359 Bitmask notReady; /* Cursors that are not yet positioned */
168497 Bitmask mx = 0;
168499 Bitmask m = sqlite3WhereGetMask(pMaskSet, pTabList->a[ii].iCursor);
168687 notReady = ~(Bitmask)0;
168801 Bitmask b = pTabItem->colUsed;