Lines Matching refs:Bitmask
16421 typedef SQLITE_BITMASK_TYPE Bitmask; typedef
16423 typedef u64 Bitmask; typedef
16429 #define BMS ((int)(sizeof(Bitmask)*8))
16434 #define MASKBIT(n) (((Bitmask)1)<<(n))
16436 #define ALLBITS ((Bitmask)-1)
16485 Bitmask colUsed; /* Bit N (1<<N) set if column N of pTab is used */
91640 pMatch->colUsed |= ((Bitmask)1)<<n;
91687 pItem->colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
95036 Bitmask colUsed; /* Columns of the index used */
95037 Bitmask mCol; /* Mask for the current column */
128734 Bitmask notReady; /* FROM entries not usable at this level */
128755 Bitmask prereq; /* Bitmask of other loops that must run first */
128756 Bitmask maskSelf; /* Bitmask identifying table iTab */
128797 Bitmask prereq; /* Prerequisites */
128831 Bitmask maskLoop; /* Bitmask of all WhereLoop objects in this path */
128832 Bitmask revLoop; /* aLoop[]s that should be reversed for ORDER BY */
128907 Bitmask prereqRight; /* Bitmask of tables used by pExpr->pRight */
128908 Bitmask prereqAll; /* Bitmask of tables referenced by pExpr */
128982 Bitmask indexable; /* Bitmask of all indexable tables in the clause */
129082 Bitmask revMask; /* Mask of ORDER BY terms that need reversing */
129094 SQLITE_PRIVATE Bitmask sqlite3WhereGetMask(WhereMaskSet*,int);
129102 Bitmask notReady, /* RHS must not overlap with this mask */
129130 SQLITE_PRIVATE Bitmask sqlite3WhereCodeOneLoopStart(
129133 Bitmask notReady /* Which tables are currently available */
129140 SQLITE_PRIVATE Bitmask sqlite3WhereExprUsage(WhereMaskSet*, Expr*);
129141 SQLITE_PRIVATE Bitmask sqlite3WhereExprListUsage(WhereMaskSet*, ExprList*);
130345 SQLITE_PRIVATE Bitmask sqlite3WhereCodeOneLoopStart(
130348 Bitmask notReady /* Which tables are currently available */
131985 Bitmask chngToIN; /* Tables that might satisfy case 1 */
131986 Bitmask indexable; /* Tables that are indexable, satisfying case 2 */
132009 indexable = ~(Bitmask)0;
132010 chngToIN = ~(Bitmask)0;
132021 Bitmask b = 0;
132047 Bitmask b;
132257 static Bitmask exprSelectUsage(WhereMaskSet *pMaskSet, Select *pS){
132258 Bitmask mask = 0;
132293 Bitmask mPrereq, /* Bitmask of FROM clause terms referenced by pExpr */
132317 Bitmask mPrereq, /* Bitmask of FROM clause terms referenced by pExpr */
132369 Bitmask prereqLeft; /* Prerequesites of the pExpr->pLeft */
132370 Bitmask prereqAll; /* Prerequesites of pExpr */
132371 Bitmask extraRight = 0; /* Extra dependencies on LEFT JOIN */
132407 Bitmask x = sqlite3WhereGetMask(pMaskSet, pExpr->iRightJoinTable);
132627 Bitmask prereqColumn, prereqExpr;
132833 SQLITE_PRIVATE Bitmask sqlite3WhereExprUsage(WhereMaskSet *pMaskSet, Expr *p){
132834 Bitmask mask;
132853 SQLITE_PRIVATE Bitmask sqlite3WhereExprListUsage(WhereMaskSet *pMaskSet, ExprList *pList){
132855 Bitmask mask = 0;
133068 Bitmask prereq, /* Prerequisites of the new entry */
133103 SQLITE_PRIVATE Bitmask sqlite3WhereGetMask(WhereMaskSet *pMaskSet, int iCursor){
133105 assert( pMaskSet->n<=(int)sizeof(Bitmask)*8 );
133299 Bitmask notReady, /* RHS must not overlap with this mask */
133424 if( 0==sqlite3WhereFindTerm(pWC, iBase, i, ~(Bitmask)0, WO_EQ, pIdx) ){
133545 Bitmask notReady /* Tables in outer loops of the join */
133579 Bitmask notReady, /* Mask of cursors that are not available */
133597 Bitmask idxCols; /* Bitmap of columns used for indexing */
133598 Bitmask extraCols; /* Bitmap of additional columns */
133633 Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
133686 Bitmask cMask = iCol>=BMS ? MASKBIT(BMS-1) : MASKBIT(iCol);
133785 Bitmask mUnusable, /* Ignore terms with these prereqs */
134682 Bitmask mAll = (((Bitmask)1)<<(nb*4)) - 1;
135144 Bitmask notAllowed = ~(pLoop->prereq|pLoop->maskSelf);
135285 Bitmask saved_prereq; /* Original value of pNew->prereq */
135632 static Bitmask columnsInIndex(Index *pIdx){
135633 Bitmask m = 0;
135707 Bitmask mPrereq /* Extra prerequesites for using this table */
135854 Bitmask m;
135958 Bitmask mPrereq, /* Mask of tables that must be used. */
135959 Bitmask mUsable, /* Mask of usable tables */
136133 Bitmask mPrereq, /* Tables that must be scanned before this one */
136134 Bitmask mUnusable /* Tables that must be scanned after this one */
136145 Bitmask mBest; /* Tables used by best possible plan */
136180 Bitmask mPrev = 0;
136181 Bitmask mBestNoIn = 0;
136201 Bitmask mNext = ALLBITS;
136204 Bitmask mThis = (
136254 Bitmask mPrereq,
136255 Bitmask mUnusable
136377 Bitmask mPrereq = 0;
136378 Bitmask mPrior = 0;
136392 Bitmask mUnusable = 0;
136450 Bitmask *pRevMask /* OUT: Mask of WhereLoops to run in reverse order */
136472 Bitmask obSat = 0; /* Mask of ORDER BY terms satisfied so far */
136473 Bitmask obDone; /* Mask of all ORDER BY terms */
136474 Bitmask orderDistinctMask; /* Mask of all well-ordered loops */
136475 Bitmask ready; /* Mask of inner loops */
136706 Bitmask mTerm;
136720 Bitmask m = MASKBIT(i) - 1;
136917 Bitmask maskNew; /* Mask of src visited by (..) */
136918 Bitmask revMask = 0; /* Mask of rev-order loops for (..) */
137130 Bitmask notUsed;
137152 Bitmask m = 0;
137168 Bitmask revMask = 0;
137406 Bitmask notReady; /* Cursors that are not yet positioned */
137531 Bitmask mx = 0;
137533 Bitmask m = sqlite3WhereGetMask(pMaskSet, pTabList->a[ii].iCursor);
137675 notReady = ~(Bitmask)0;
137681 Bitmask tabUsed = sqlite3WhereExprListUsage(pMaskSet, pResultSet);
137800 Bitmask b = pTabItem->colUsed;