Lines Matching defs:u16

14382 typedef UINT16_TYPE u16;           /* 2-byte unsigned integer */
15396 SQLITE_PRIVATE void sqlite3PagerRekey(DbPage*, Pgno, u16);
15731 u16 nMem; /* Number of aMem[] value. Might be zero */
15885 u16 p5; /* Fifth parameter is an unsigned 16-bit integer */
16303 SQLITE_PRIVATE void sqlite3VdbeAddParseSchemaOp(Vdbe*, int, char*, u16);
16308 SQLITE_PRIVATE void sqlite3VdbeChangeP5(Vdbe*, u16 P5);
16515 u16 flags; /* PGHDR flags defined below */
16823 u16 schemaFlags; /* Flags associated with this schema */
16903 u16 sz; /* Size of each buffer in bytes */
16904 u16 szTrue; /* True value of sz, even if disabled */
17581 u16 iDflt; /* 1-based index of DEFAULT. 0 means "none" */
17582 u16 colFlags; /* Boolean properties. See COLFLAG_ defines below */
17974 u16 nKeyField; /* Number of key columns in the index */
17975 u16 nAllField; /* Total columns, including key plus others */
18030 u16 nField; /* Number of entries in apMem[] */
18099 u16 nKeyCol; /* Number of columns forming the key */
18100 u16 nColumn; /* Number of columns stored in the index */
18520 u16 iOrderByCol; /* For ORDER BY, column number in result set */
18521 u16 iAlias; /* Index into Parse.aAlias[] for zName */
19563 u16 eCode; /* A small processing code */
20218 ExprList*,Select*,u16,int);
22498 u16 seekHit; /* See the OP_SeekHit and OP_IfNoHope opcodes */
22529 u16 nHdrParsed; /* Number of header fields parsed so far */
22626 u16 flags; /* Some combination of MEM_Null, MEM_Str, MEM_Dyn, etc. */
22637 u16 mScopyFlags; /* flags value immediately after the shallow copy */
22867 u16 nResColumn; /* Number of columns in one row of the result set */
23011 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem*,sqlite3*,u16);
23616 static const u16 aMx[] = { 12, 14, 24, 31, 59, 9999 };
23625 u16 max;
31433 u16 flg = aCol[i].colFlags;
41175 u16 nRegion; /* Size of array apRegion */
41207 u16 sharedMask; /* Mask of shared locks held */
41208 u16 exclMask; /* Mask of exclusive locks held */
41297 { u16 mask;
41806 u16 mask; /* Mask of locks to take or release */
48847 u16 sharedMask; /* Mask of shared locks held */
48848 u16 exclMask; /* Mask of exclusive locks held */
49155 u16 mask; /* Mask of locks to take or release */
49169 mask = (u16)((1U<<(ofst+n)) - (1U<<ofst));
49173 u16 allMask = 0; /* Mask of locks held by siblings */
49195 u16 allShared = 0; /* Union of locks held by connections other than "p" */
53642 ** can cause a valgrind error if the unitialized gap is accessed. Using u16
53654 u16 isBulkLocal; /* This page from bulk local storage */
53655 u16 isAnchor; /* This is the PGroup.lru element */
54932 u16 nFresh; /* Number of objects on pFresh */
54933 u16 rsFlags; /* Various flags */
54957 p->nFresh = (u16)((N - ROUND8(sizeof(*p)))/sizeof(struct RowSetEntry));
56174 u16 nExtra; /* Add this many bytes to each in-memory page */
60590 pPager->nExtra = (u16)nExtra;
62834 SQLITE_PRIVATE void sqlite3PagerRekey(DbPage *pPg, Pgno iNew, u16 flags){
63688 u16 szPage; /* Database page size in bytes. 1==64K */
63921 typedef u16 ht_slot;
64710 pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
67194 pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
67851 u16 maxLocal; /* Copy of BtShared.maxLocal or BtShared.maxLeaf */
67852 u16 minLocal; /* Copy of BtShared.minLocal or BtShared.minLeaf */
67853 u16 cellOffset; /* Index in aData of first cell pointer */
67855 u16 nCell; /* Number of cells on this page, local and ovfl */
67856 u16 maskPage; /* Mask for page offset */
67857 u16 aiOvfl[4]; /* Insert the i-th overflow cell before the aiOvfl-th
67868 u16 (*xCellSize)(MemPage*,u8*); /* cellSizePtr method */
68005 u16 btsFlags; /* Boolean parameters. See BTS_* macros below */
68006 u16 maxLocal; /* Maximum local payload in non-LEAFDATA tables */
68007 u16 minLocal; /* Minimum local payload in non-LEAFDATA tables */
68008 u16 maxLeaf; /* Maximum local payload in a LEAFDATA table */
68009 u16 minLeaf; /* Minimum local payload in a LEAFDATA table */
68050 u16 nLocal; /* Amount of payload held locally, not on overflow */
68051 u16 nSize; /* Size of the cell content on the main b-tree page */
68112 u16 ix; /* Current index for apPage[iPage] */
68113 u16 aiIdx[BTCURSOR_MAX_DEPTH-1]; /* Current index in apPage[i] */
68290 # define get2byteAligned(x) (*(u16*)(x))
68292 # define get2byteAligned(x) __builtin_bswap16(*(u16*)(x))
68294 # define get2byteAligned(x) _byteswap_ushort(*(u16*)(x))
69755 pInfo->nLocal = (u16)surplus;
69757 pInfo->nLocal = (u16)minLocal;
69759 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
69886 pInfo->nSize = nPayload + (u16)(pIter - pCell);
69888 pInfo->nLocal = (u16)nPayload;
69923 pInfo->nSize = nPayload + (u16)(pIter - pCell);
69925 pInfo->nLocal = (u16)nPayload;
69951 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
69987 nSize += 4 + (u16)(pIter - pCell);
69990 return (u16)nSize;
69992 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){
70010 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
70011 return (u16)(pIter - pCell);
70013 static u16 cellSizePtrTableLeaf(MemPage *pPage, u8 *pCell){
70060 nSize += 4 + (u16)(pIter - pCell);
70063 return (u16)nSize;
70070 static u16 cellSize(MemPage *pPage, int iCell){
70417 static int freeSpace(MemPage *pPage, u16 iStart, u16 iSize){
70418 u16 iPtr; /* Address of ptr to next freeblock */
70419 u16 iFreeBlk; /* Address of the next freeblock */
70422 u16 iOrigSize = iSize; /* Original value of iSize */
70423 u16 x; /* Offset to cell content area */
70676 pPage->nFree = (u16)(nFree - iCellFirst);
70745 pPage->maskPage = (u16)(pBt->pageSize - 1);
70782 u16 first;
70797 pPage->nFree = (u16)(pBt->usableSize - first);
70805 pPage->maskPage = (u16)(pBt->pageSize - 1);
71209 assert( sizeof(u16)==2 );
71630 pBt->usableSize = pBt->pageSize - (u16)nReserve;
71970 pBt->maxLocal = (u16)((pBt->usableSize-12)*64/255 - 23);
71971 pBt->minLocal = (u16)((pBt->usableSize-12)*32/255 - 23);
71972 pBt->maxLeaf = (u16)(pBt->usableSize - 35);
71973 pBt->minLeaf = (u16)((pBt->usableSize-12)*32/255 - 23);
74305 pCur->ix = (u16)idx;
74324 pCur->ix = (u16)idx;
74335 pCur->ix = (u16)lwr;
74583 pCur->ix = (u16)idx;
74606 pCur->ix = (u16)idx;
74618 pCur->ix = (u16)idx;
74628 pCur->ix = (u16)lwr;
75724 pPage->aiOvfl[j] = (u16)i;
75731 assert( j==0 || pPage->aiOvfl[j-1]<(u16)i ); /* Overflows in sorted order */
75749 pPage->nFree -= (u16)(2 + sz);
75867 u16 *szCell; /* Local size of all cells in apCell[] */
75894 static SQLITE_NOINLINE u16 computeCellSize(CellArray *p, int N){
75900 static u16 cachedCellSize(CellArray *p, int N){
75949 u16 sz = pCArray->szCell[i];
76100 freeSpace(pPg, (u16)(pFree - aData), szFree);
76116 freeSpace(pPg, (u16)(pFree - aData), szFree);
76286 u16 szCell = pPage->xCellSize(pPage, pCell);
76513 u16 leafCorrection; /* 4 if pPage is a leaf. 0 if not */
76648 + nMaxCells*sizeof(u16) /* b.szCell */
76657 b.szCell = (u16*)&b.apCell[nMaxCells];
76684 u16 maskPage = pOld->maskPage;
76743 u16 sz = (u16)szNew[i];
76980 u16 fgA = apNew[i]->pDbPage->flags;
76981 u16 fgB = apNew[iB]->pDbPage->flags;
81395 SQLITE_PRIVATE void sqlite3VdbeMemInit(Mem *pMem, sqlite3 *db, u16 flags){
81578 u16 mFlags;
81694 u16 flags; /* New value for pMem->flags */
83018 SQLITE_PRIVATE void sqlite3VdbeAddParseSchemaOp(Vdbe *p, int iDb, char *zWhere, u16 p5){
83687 SQLITE_PRIVATE void sqlite3VdbeChangeP5(Vdbe *p, u16 p5){
84524 static void initMemArray(Mem *p, int N, sqlite3 *db, u16 flags){
85251 p->nResColumn = (u16)nResColumn;
86553 static const u16 aFlag[] = { MEM_Blob|MEM_Ephem, MEM_Str|MEM_Ephem };
86605 u16 u; /* Unsigned loop counter */
89042 /* .flags = */ (u16)MEM_Null,
90718 static u16 SQLITE_NOINLINE computeNumericType(Mem *pMem){
90749 static u16 numericType(Mem *pMem){
91686 u16 nullFlag;
92005 u16 flags1; /* Initial flags for P1 */
92006 u16 flags2; /* Initial flags for P2 */
92104 u16 type1; /* Numeric type of left operand */
92105 u16 type2; /* Numeric type of right operand */
92489 u16 flags1; /* Copy of initial value of pIn1->flags */
92490 u16 flags3; /* Copy of initial value of pIn3->flags */
92997 u16 typeMask;
93398 static const u16 aFlag[] = { MEM_Blob, MEM_Str|MEM_Term };
95007 u16 flags3, newType;
95090 r.nField = (u16)nField;
95288 r.nField = (u16)pOp[1].p4.i;
95536 r.nField = (u16)pOp->p4.i;
96685 x.nMem = (u16)pOp->p4.i;
96752 r.nField = (u16)pOp->p3;
96934 r.nField = (u16)pOp->p4.i;
97574 p->nCursor = (u16)pFrame->nChildCsr;
99285 u16 iCol; /* Table column this handle is open on */
105190 pItem->u.x.iOrderByCol = (u16)iCol;
105323 pItem->u.x.iOrderByCol = (u16)iCol;
105335 pItem->u.x.iOrderByCol = (u16)iCol;
112437 static void renameReloadSchema(Parse *pParse, int iDb, u16 p5){
123615 pBest->nArg = (u16)nArg;
124182 u16 wcf = WHERE_ONEPASS_DESIRED|WHERE_DUPLICATES_OK;
131105 u16 i;
139729 p->nKeyField = (u16)N;
139730 p->nAllField = (u16)(N+X);
141723 if( pOrderBy ) pOrderBy->a[nOrderBy++].u.x.iOrderByCol = (u16)i;
143981 u16 selFlags = p->selFlags;
145489 u16 wctrlFlags = (sDistinct.isTnct ? WHERE_WANT_DISTINCT : 0)
145721 u16 distFlag = 0;
146024 u16 distFlag = 0;
150576 u16 oooHidden = 0;
151447 u16 nEq; /* Number of equality constraints */
151448 u16 nBtm; /* Size of BTM vector */
151449 u16 nTop; /* Size of TOP vector */
151450 u16 nDistinctCol; /* Index columns used to sort for DISTINCT */
151458 u16 omitMask; /* Terms that may be omitted */
151464 u16 nLTerm; /* Number of entries in aLTerm[] */
151465 u16 nSkip; /* Number of NULL aLTerm[] entries */
151468 u16 nLSlot; /* Number of slots allocated for aLTerm[] */
151490 u16 n; /* Number of valid a[] entries */
151577 u16 wtFlags; /* TERM_xxx bit flags. See below */
151578 u16 eOperator; /* A WO_xx value describing <op> */
151781 u16 wctrlFlags; /* Flags originally passed to sqlite3WhereBegin() */
151830 u16 wctrlFlags /* Flags passed to sqlite3WhereBegin() */
152015 u16 nEq = pLoop->u.btree.nEq;
152016 u16 nSkip = pLoop->nSkip;
152051 u16 wctrlFlags /* Flags passed to sqlite3WhereBegin() */
152695 u16 nEq; /* The number of == or IN constraints to code */
152696 u16 nSkip; /* Number of left-most columns to skip */
153220 u16 nEq = pLoop->u.btree.nEq;
153643 u16 nEq = pLoop->u.btree.nEq; /* Number of == or IN terms */
153644 u16 nBtm = pLoop->u.btree.nBtm; /* Length of BTM vector */
153645 u16 nTop = pLoop->u.btree.nTop; /* Length of TOP vector */
154757 static int whereClauseInsert(WhereClause *pWC, Expr *p, u16 wtFlags){
154808 static u16 exprCommute(Parse *pParse, Expr *pExpr){
154831 static u16 operatorMask(int op){
154832 u16 c;
154842 c = (u16)(WO_EQ<<(op-TK_EQ));
155215 u16 eOp = pOne->eOperator | pTwo->eOperator;
155840 u16 opMask = (pTerm->prereqRight & prereqLeft)==0 ? WO_ALL : WO_EQUIV;
155862 u16 eExtraOp = 0; /* Extra bits for pNew->eOperator */
156021 const u16 wtFlags = TERM_LIKEOPT | TERM_VIRTUAL | TERM_DYNAMIC;
156759 u16 i;
157722 u16 *pmNoOmit /* Mask of terms not to omit */
157734 u16 mNoOmit = 0;
157849 u16 op;
158431 u16 mask = WO_GT|WO_LE;
158448 u16 mask = WO_GT|WO_LE;
159056 u16 n = pBuilder->pOrSet->n;
159348 u16 saved_nLTerm; /* Original value of pNew->nLTerm */
159349 u16 saved_nEq; /* Original value of pNew->u.btree.nEq */
159350 u16 saved_nBtm; /* Original value of pNew->u.btree.nBtm */
159351 u16 saved_nTop; /* Original value of pNew->u.btree.nTop */
159352 u16 saved_nSkip; /* Original value of pNew->nSkip */
159394 u16 eOp = pTerm->eOperator; /* Shorthand for pTerm->eOperator */
159826 u16 nColumn; /* Number of columns in the index */
160225 u16 mExclude, /* Exclude terms using these operators */
160227 u16 mNoOmit, /* Do not omit these constraints */
160560 u16 mNoOmit;
160908 u16 wctrlFlags, /* WHERE_GROUPBY or _DISTINCTBY or _ORDERBY_LIMIT */
160909 u16 nLoop, /* Number of entries in pPath->aLoop[] */
160919 u16 eqOpMask; /* Allowed equality operators */
160920 u16 nKeyCol; /* Number of key columns in pIndex */
160921 u16 nColumn; /* Total number of ordered columns in the index */
160922 u16 nOrderBy; /* Number terms in the ORDER BY clause */
161063 u16 eOp = pLoop->aLTerm[j]->eOperator;
162178 u16 wctrlFlags, /* The WHERE_* flags defined in sqliteInt.h */
174206 db->lookaside.sz = (u16)sz;
174207 db->lookaside.szTrue = (u16)sz;
175366 p->nArg = (u16)nArg;
176049 static const u16 outOfMem[] = {
176052 static const u16 misuse[] = {
198379 u16 iDepth; /* Nesting depth */
201022 typedef unsigned short u16;
209008 typedef unsigned short u16;
213436 static void rbuPutU16(u8 *aBuf, u16 iVal){
221957 typedef unsigned short u16;
230383 u16 iFirst; /* aSeg[] index of firstest iterator */
230560 static void fts5PutU16(u8 *aOut, u16 iVal){
230565 static u16 fts5GetU16(const u8 *aIn){
230566 return ((u16)aIn[0] << 8) + aIn[1];
232724 pRes->iFirst = (u16)iRes;
232892 pRes->iFirst = (u16)(pNew - pIter->aSeg);
233952 fts5PutU16(&pPage->buf.p[2], (u16)pPage->buf.n);
234086 fts5PutU16(pPage->buf.p, (u16)pPage->buf.n);
234253 fts5PutU16(&buf.p[2], (u16)buf.n);
234640 fts5PutU16(&pBuf->p[0], (u16)pBuf->n); /* first rowid on page */
242711 static u16 aFts5UnicodeBlock[] = {
242715 static u16 aFts5UnicodeMap[] = {
242894 static u16 aFts5UnicodeData[] = {
243079 u16 iKey;