Lines Matching refs:pMaskSet
92 static int getMask(ExprMaskSet *pMaskSet, int iCursor){ in getMask() argument
94 for(i=0; i<pMaskSet->n; i++){ in getMask()
95 if( pMaskSet->ix[i]==iCursor ) return 1<<i; in getMask()
97 if( i==pMaskSet->n && i<ARRAYSIZE(pMaskSet->ix) ){ in getMask()
98 pMaskSet->n++; in getMask()
99 pMaskSet->ix[i] = iCursor; in getMask()
122 static int exprTableUsage(ExprMaskSet *pMaskSet, Expr *p){ in exprTableUsage() argument
126 mask = getMask(pMaskSet, p->iTable); in exprTableUsage()
131 mask = exprTableUsage(pMaskSet, p->pRight); in exprTableUsage()
134 mask |= exprTableUsage(pMaskSet, p->pLeft); in exprTableUsage()
139 mask |= exprTableUsage(pMaskSet, p->pList->a[i].pExpr); in exprTableUsage()
170 static void exprAnalyze(ExprMaskSet *pMaskSet, ExprInfo *pInfo){ in exprAnalyze() argument
172 pInfo->prereqLeft = exprTableUsage(pMaskSet, pExpr->pLeft); in exprAnalyze()
173 pInfo->prereqRight = exprTableUsage(pMaskSet, pExpr->pRight); in exprAnalyze()
174 pInfo->prereqAll = exprTableUsage(pMaskSet, pExpr); in exprAnalyze()