Lines Matching refs:Bitmask
457 ** bitmask tests, testcase() can be used to make sure each bit
9922 ** The bitmask datatype defined below is used for various optimizations.
9928 typedef u64 Bitmask;
9931 ** The number of bits in a Bitmask. "BMS" means "BitMask Size".
9933 #define BMS ((int)(sizeof(Bitmask)*8))
9972 Bitmask colUsed; /* Bit N (1<<N) set if column N of pTab is used */
10313 u32 cookieMask; /* Bitmask of schema verified databases */
11296 ** the MEMTYPE_* macros defined below. The type must be a bitmask with
12294 int btreeMask; /* Bitmask of db->aDb[] entries referenced */
39055 ** The vfsFlags parameter is a bitmask to pass to the flags parameter
47040 ** The "flags" parameter is a bitmask that might contain bits
61755 ** P1 is a 32-bit bitmask indicating whether or not each argument to the
67959 ** this fact in the pSrcList.a[].colUsed bitmask. Column 0 causes
67961 ** column number is greater than the number of bits in the bitmask
67962 ** then set the high-order bit of the bitmask.
67971 pMatch->colUsed |= ((Bitmask)1)<<n;
68015 pItem->colUsed |= ((Bitmask)1)<<(iCol>=BMS ? BMS-1 : iCol);
93510 ** This function returns a 32-bit bitmask indicating which columns of the
95577 ** the <op> using a bitmask encoding defined by WO_xxx below. The
95578 ** use of a bitmask encoding for the operator allows us to search
95598 ** bits that will fit in a Bitmask. The VDBE cursor numbers might be
95603 ** bits in the Bitmask. So, in the example above, the cursor numbers
95624 Bitmask prereqRight; /* Bitmask of tables used by pExpr->pRight */
95625 Bitmask prereqAll; /* Bitmask of tables referenced by pExpr */
95646 Bitmask vmask; /* Bitmask identifying virtual table cursors */
95664 BitmaskBitmask of all indexable tables in the clause */
95687 ** If WhereMaskSet.ix[A]==B it means that The A-th bit of a Bitmask
95688 ** corresponds VDBE cursor number B. The A-th bit of a bitmask is 1<<A.
95713 Bitmask used; /* Bitmask of cursors used by this plan */
95908 ** Return the bitmask for the given cursor number. Return 0 if
95911 static Bitmask getMask(WhereMaskSet *pMaskSet, int iCursor){
95913 assert( pMaskSet->n<=sizeof(Bitmask)*8 );
95916 return ((Bitmask)1)<<i;
95937 ** a bitmask indicating which tables are used in that expression
95946 ** translate the cursor numbers into bitmask values and OR all
95949 static Bitmask exprListTableUsage(WhereMaskSet*, ExprList*);
95950 static Bitmask exprSelectTableUsage(WhereMaskSet*, Select*);
95951 static Bitmask exprTableUsage(WhereMaskSet *pMaskSet, Expr *p){
95952 Bitmask mask = 0;
95967 static Bitmask exprListTableUsage(WhereMaskSet *pMaskSet, ExprList *pList){
95969 Bitmask mask = 0;
95977 static Bitmask exprSelectTableUsage(WhereMaskSet *pMaskSet, Select *pS){
95978 Bitmask mask = 0;
96048 ** Translate from TK_xx operator to WO_xx bitmask.
96081 Bitmask notReady, /* RHS must not overlap with this mask */
96368 Bitmask chngToIN; /* Tables that might satisfy case 1 */
96369 Bitmask indexable; /* Tables that are indexable, satisfying case 2 */
96391 indexable = ~(Bitmask)0;
96404 Bitmask b = 0;
96427 Bitmask b;
96614 Bitmask prereqLeft; /* Prerequesites of the pExpr->pLeft */
96615 Bitmask prereqAll; /* Prerequesites of pExpr */
96616 Bitmask extraRight = 0; /* Extra dependencies on LEFT JOIN */
96646 Bitmask x = getMask(pMaskSet, pExpr->iRightJoinTable);
96819 Bitmask prereqColumn, prereqExpr;
96861 Bitmask allowed = ~getMask(pMaskSet, iBase);
97078 Bitmask, Bitmask, ExprList*, WhereCost*);
97091 Bitmask notReady, /* Mask of cursors not available for indexing */
97092 Bitmask notValid, /* Cursors not available for any purpose */
97098 const Bitmask maskSrc = getMask(pWC->pMaskSet, iCur); /* Bitmask for pSrc */
97120 Bitmask used = 0;
97180 Bitmask notReady /* Tables in outer loops of the join */
97205 Bitmask notReady, /* Mask of cursors that are not available */
97268 Bitmask notReady, /* Mask of cursors that are not available */
97287 Bitmask idxCols; /* Bitmap of columns used for indexing */
97288 Bitmask extraCols; /* Bitmap of additional columns */
97307 Bitmask cMask = iCol>=BMS ? ((Bitmask)1)<<(BMS-1) : ((Bitmask)1)<<iCol;
97327 extraCols = pSrc->colUsed & (~idxCols | (((Bitmask)1)<<(BMS-1)));
97332 if( extraCols & (((Bitmask)1)<<i) ) nColumn++;
97334 if( pSrc->colUsed & (((Bitmask)1)<<(BMS-1)) ){
97358 Bitmask cMask = iCol>=BMS ? ((Bitmask)1)<<(BMS-1) : ((Bitmask)1)<<iCol;
97374 if( extraCols & (((Bitmask)1)<<i) ){
97380 if( pSrc->colUsed & (((Bitmask)1)<<(BMS-1)) ){
97584 Bitmask notReady, /* Mask of cursors not available for index */
97585 Bitmask notValid, /* Cursors not valid for any purpose */
97995 Bitmask notReady, /* Mask of cursors not available for indexing */
97996 Bitmask notValid, /* Cursors not available for any purpose */
98062 Bitmask used = 0;
98199 Bitmask m = pSrc->colUsed;
98204 m &= ~(((Bitmask)1)<<x);
98271 Bitmask thisTab; /* Bitmap for pSrc */
98373 Bitmask notReady, /* Mask of cursors not available for indexing */
98374 Bitmask notValid, /* Cursors not available for any purpose */
98582 Bitmask notReady, /* Which parts of FROM have not yet been coded */
98810 static Bitmask codeOneLoopStart(
98814 Bitmask notReady /* Which tables are currently available */
99593 Bitmask notReady; /* Cursors that are not yet positioned */
99603 ** bits in a Bitmask
99622 ** field (type Bitmask) it must be aligned on an 8-byte boundary on
99662 /* Assign a bit from the bitmask to every term in the FROM clause.
99664 ** When assigning bitmask values to FROM clause cursors, it must be
99665 ** the case that if X is the bitmask for the N-th FROM clause term then
99666 ** the bitmask for all FROM clause terms to the left of the N-th term
99668 ** its Expr.iRightJoinTable value to find the bitmask of the right table
99669 ** of the join. Subtracting one from the right table bitmask gives a
99670 ** bitmask for all tables to the left of the join. Knowing the bitmask
99688 pWC->vmask |= ((Bitmask)1 << i);
99694 Bitmask toTheLeft = 0;
99696 Bitmask m = getMask(pMaskSet, pTabList->a[i].iCursor);
99728 notReady = ~(Bitmask)0;
99738 Bitmask m; /* Bitmask value for j or bestJ */
99741 Bitmask notIndexed; /* Mask of tables that cannot use an index */
99793 Bitmask mask; /* Mask of tables not yet ready */
99942 notReady = ~(Bitmask)0;
99970 Bitmask b = pTabItem->colUsed;
100005 notReady = ~(Bitmask)0;
107340 ** argument N is a bitmask of optimizations to be disabled. For normal
117825 u64 mCovered, /* Bitmask of phrases already covered */
117828 u64 *pmCover, /* OUT: Bitmask of phrases covered */
117829 u64 *pmHighlight /* OUT: Bitmask of terms to highlight */
118797 u64 mCovered = 0; /* Bitmask of phrases covered by snippet */
118798 u64 mSeen = 0; /* Bitmask of phrases seen by BestSnippet() */