Lines Matching refs:u64
13857 typedef sqlite_uint64 u64; /* 8-byte unsigned integer */ typedef
13870 #define SQLITE_MAX_U32 ((((u64)1)<<32)-1)
13879 typedef u64 tRowcnt; /* 64-bit only if requested at compile-time */
13931 typedef u64 uptr;
14248 typedef u64 Bitmask;
14746 u64 cycles; /* Total time spent executing this instruction */
16302 u64 flags; /* flags settable by pragmas. See below */
16348 void (*xProfile)(void*,const char*,u64); /* Profiling function */
16475 #define HI(X) ((u64)(X)<<32)
18637 SQLITE_PRIVATE void *sqlite3Malloc(u64);
18638 SQLITE_PRIVATE void *sqlite3MallocZero(u64);
18639 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3*, u64);
18640 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3*, u64);
18641 SQLITE_PRIVATE void *sqlite3DbMallocRawNN(sqlite3*, u64);
18643 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3*,const char*, u64);
18645 SQLITE_PRIVATE void *sqlite3Realloc(void*, u64);
18646 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *, void *, u64);
18647 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *, void *, u64);
19100 SQLITE_PRIVATE LogEst sqlite3LogEst(u64);
19108 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst);
19119 SQLITE_PRIVATE int sqlite3PutVarint(unsigned char*, u64);
19120 SQLITE_PRIVATE u8 sqlite3GetVarint(const unsigned char *, u64 *);
19122 SQLITE_PRIVATE int sqlite3VarintLen(u64 v);
19304 SQLITE_PRIVATE void *sqlite3ParserAlloc(void*(*)(u64), Parse*);
20059 u64 maskUsed; /* Mask of columns used by this cursor */
21928 u64 n; in strftimeFunc()
21973 testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH]+1 ); in strftimeFunc()
21974 testcase( n==(u64)db->aLimit[SQLITE_LIMIT_LENGTH] ); in strftimeFunc()
21977 }else if( n>(u64)db->aLimit[SQLITE_LIMIT_LENGTH] ){ in strftimeFunc()
24371 u64 nAlloc; /* Total number of calls to malloc */
24372 u64 totalAlloc; /* Total of all malloc calls - includes internal frag */
24373 u64 totalExcess; /* Total internal fragmentation */
26740 SQLITE_PRIVATE void *sqlite3Malloc(u64 n){
26885 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
26955 SQLITE_PRIVATE void *sqlite3MallocZero(u64 n){
26967 SQLITE_PRIVATE void *sqlite3DbMallocZero(sqlite3 *db, u64 n){
26979 static SQLITE_NOINLINE void *dbMallocRawFinish(sqlite3 *db, u64 n){
27011 SQLITE_PRIVATE void *sqlite3DbMallocRaw(sqlite3 *db, u64 n){
27018 SQLITE_PRIVATE void *sqlite3DbMallocRawNN(sqlite3 *db, u64 n){
27054 static SQLITE_NOINLINE void *dbReallocFinish(sqlite3 *db, void *p, u64 n);
27060 SQLITE_PRIVATE void *sqlite3DbRealloc(sqlite3 *db, void *p, u64 n){
27067 static SQLITE_NOINLINE void *dbReallocFinish(sqlite3 *db, void *p, u64 n){
27097 SQLITE_PRIVATE void *sqlite3DbReallocOrFree(sqlite3 *db, void *p, u64 n){
27126 SQLITE_PRIVATE char *sqlite3DbStrNDup(sqlite3 *db, const char *z, u64 n){
27648 longvalue = ((u64)1)<<63;
27659 longvalue = (u64)getIntArg(pArgList);
27662 longvalue = va_arg(ap,u64);
27679 u64 n;
27680 n = (u64)precision + 10;
30829 u64 u = 0;
30934 u64 u = 0;
31053 static int SQLITE_NOINLINE putVarint64(unsigned char *p, u64 v){
31056 if( v & (((u64)0xff000000)<<32) ){
31077 SQLITE_PRIVATE int sqlite3PutVarint(unsigned char *p, u64 v){
31107 SQLITE_PRIVATE u8 sqlite3GetVarint(const unsigned char *p, u64 *v){
31187 *v = ((u64)s)<<32 | a;
31208 *v = ((u64)s)<<32 | a;
31223 *v = ((u64)s)<<32 | a;
31241 *v = ((u64)s)<<32 | a;
31262 *v = ((u64)s)<<32 | a;
31333 u64 v64;
31385 u64 v64;
31401 SQLITE_PRIVATE int sqlite3VarintLen(u64 v){
31681 SQLITE_PRIVATE LogEst sqlite3LogEst(u64 x){
31706 u64 a;
31710 if( x<=2000000000 ) return sqlite3LogEst((u64)x);
31726 SQLITE_PRIVATE u64 sqlite3LogEstToInt(LogEst x){
31727 u64 n;
31734 if( x>60 ) return (u64)LARGEST_INT64;
33624 u64 ino; /* Inode number */
33908 fileId.ino = (u64)statbuf.st_ino;
33952 || (u64)buf.st_ino!=pFile->pInode->fileId.ino);
38213 u64 r;
38275 || pInode->fileId.ino!=(u64)sStat.st_ino) ){
64343 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
64356 u64 iKey; /* Extracted Key value */
65644 assert( sizeof(u64)==8 );
68644 getVarint(pCell, (u64*)&nCellKey);
69610 nHeader += putVarint(&pCell[nHeader], *(u64*)&pX->nKey);
73212 u64 savedDbFlags = pBt->db->flags;
73279 pBt->db->flags &= ~(u64)SQLITE_CellSizeCk;
79253 db->flags &= ~(u64)SQLITE_DeferFKs;
79754 u64 u;
79862 static u64 floatSwap(u64 in){
79864 u64 r;
79898 u64 v;
79952 u64 x = FOUR_BYTE_UINT(buf);
79970 static const u64 t1 = ((u64)0x3ff00000)<<32;
79972 u64 t2 = t1;
80211 if( d1+(u64)serial_type1+2>(u64)nKey1
80212 && d1+(u64)sqlite3VdbeSerialTypeLen(serial_type1)>(u64)nKey1
80521 u64 x = FOUR_BYTE_UINT(aKey);
80766 u64 x;
80974 assert( (nCellKey & SQLITE_MAX_U32)==(u64)nCellKey );
81778 SQLITE_API int sqlite3_result_zeroblob64(sqlite3_context *pCtx, u64 n){
81781 if( n>(u64)pOut->db->aLimit[SQLITE_LIMIT_LENGTH] ){
82800 if( n>(u64)p->db->aLimit[SQLITE_LIMIT_LENGTH] ){
84211 u64 start; /* CPU clock count at start of opcode */
85258 u64 uA;
85295 if( iA<0 ) uA |= ((((u64)0xffffffff)<<32)|0xffffffff) << (64-iB);
86069 u64 offset64; /* 64-bit offset */
86368 u64 nData; /* Number of bytes of data space */
87409 pC->maskUsed = *(u64*)pOp->p4.pI64;
87576 rc = sqlite3BtreeMovetoUnpacked(pC->uc.pCursor, 0, (u64)iKey, 0, &res);
87927 u64 iKey;
88051 # define MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff )
88113 }while( ((rc = sqlite3BtreeMovetoUnpacked(pC->uc.pCursor, 0, (u64)v,
88675 if( ALWAYS(sz>=0) && sqlite3LogEst((u64)sz)<pOp->p3 ) res = 1;
90700 if( isLegacy==0 ) db->flags &= ~(u64)SQLITE_LegacyAlter;
91111 u64 endTime = sqlite3NProfileCnt ? sqlite3NProfileCnt : sqlite3Hwtime();
92301 static int vdbePmaReadVarint(PmaReader *p, u64 *pnOut){
92400 u64 nRec = 0; /* Size of record in bytes */
92461 u64 nByte = 0; /* Size of PMA in bytes */
93245 static void vdbePmaWriteVarint(PmaWriter *p, u64 iVal){
104876 sqlite3_snprintf(24, zRet, "%llu", (u64)p->nRow);
104879 u64 nDistinct = p->current.anDLt[i] + 1;
104880 u64 iVal = (p->nRow + nDistinct - 1) / nDistinct;
104928 sqlite3_snprintf(24, z, "%llu ", (u64)aCnt[i]);
113354 sqlite3_result_blob64(context, (char*)&z[p1], (u64)p2, SQLITE_TRANSIENT);
114041 u64 n;
120178 u64 nMsg = 300 + sqlite3Strlen30(zFile);
120342 db->flags &= ~(u64)(SQLITE_LoadExtension|SQLITE_LoadExtFunc);
120404 u64 nByte = (wsdAutoext.nExt+1)*sizeof(wsdAutoext.aExt[0]);
120678 u64 iArg; /* Extra argument */
122010 db->flags &= ~(u64)SQLITE_CacheSpill;
122231 u64 mask = pPragma->iArg; /* Mask of bits to set or clear. */
123997 db->flags &= ~(u64)SQLITE_LegacyFileFmt;
126707 u64 savedFlags;
126710 db->flags &= ~(u64)SQLITE_FullColNames;
126802 }else if( n>=0 && p->nSelectRow>sqlite3LogEst((u64)n) ){
126803 p->nSelectRow = sqlite3LogEst((u64)n);
127251 && nLimit>0 && p->nSelectRow > sqlite3LogEst((u64)nLimit)
127253 p->nSelectRow = sqlite3LogEst((u64)nLimit);
134032 u64 saved_flags; /* Saved value of db->flags */
134075 db->flags &= ~(u64)(SQLITE_ForeignKeys | SQLITE_ReverseOrder
145088 u64 colUsed = 0;
145095 colUsed |= ((u64)1)<<(ii<63 ? ii : 63);
148184 #define YYMALLOCARGTYPE u64
154895 u64 x = (((u64)1)<<63)-1;
155470 u64 oldFlags = db->flags;
155474 db->flags &= ~(u64)aFlagOp[i].mask;
155937 db->flags &= ~(u64)SQLITE_DeferFKs;
157357 u64 nByte = nUri+2; /* Bytes of space to allocate */
160083 typedef sqlite3_uint64 u64; /* 8-byte unsigned integer */
160619 u64 b;
160629 u64 c = *p++;
175464 static u64 fts3ChecksumEntry(
175474 u64 ret = (u64)iDocid;
175494 static u64 fts3ChecksumIndex(
175503 u64 cksum = 0;
175570 u64 cksum1 = 0; /* Checksum based on FTS index contents */
175571 u64 cksum2 = 0; /* Checksum based on %_content contents */
176174 u64 covered; /* Mask of query phrases covered */
176175 u64 hlmask; /* Mask of snippet terms to highlight */
176511 u64 mCovered, /* Bitmask of phrases already covered */
176514 u64 *pmCover, /* OUT: Bitmask of phrases covered */
176515 u64 *pmHighlight /* OUT: Bitmask of terms to highlight */
176520 u64 mCover = 0; /* Mask of phrases covered by this snippet */
176521 u64 mHighlight = 0; /* Mask of tokens to highlight in snippet */
176531 u64 mPhrase = (u64)1 << i;
176532 u64 mPos = (u64)1 << (iCsr - iStart);
176612 u64 mCovered, /* Mask of phrases already covered */
176613 u64 *pmSeen, /* IN/OUT: Mask of phrases seen */
176658 *pmSeen |= (u64)1 << i;
176669 u64 mCover;
176670 u64 mHighlite;
176753 u64 *pHlmask /* IN/OUT: Mask of tokens to highlight */
176755 u64 hlmask = *pHlmask; /* Local copy of initial highlight-mask */
176762 for(nLeft=0; !(hlmask & ((u64)1 << nLeft)); nLeft++);
176763 for(nRight=0; !(hlmask & ((u64)1 << (nSnippet-1-nRight))); nRight++);
176830 u64 hlmask = pFragment->hlmask; /* Highlight-mask for snippet */
176911 isHighlight = (hlmask & ((u64)1 << (iCurrent-iPos)))!=0;
177545 u64 mCovered = 0; /* Bitmask of phrases covered by snippet */
177546 u64 mSeen = 0; /* Bitmask of phrases seen by BestSnippet() */
178700 typedef sqlite3_uint64 u64;
178718 u64 nAlloc; /* Bytes of storage available in zBuf[] */
178719 u64 nUsed; /* Bytes of zBuf[] currently used */
178839 u64 nTotal = N<p->nAlloc ? p->nAlloc*2 : p->nAlloc+N+10;
181226 typedef sqlite3_uint64 u64;
181620 u64 x;
181624 u64 x;
181633 (((u64)p[0]) << 56) +
181634 (((u64)p[1]) << 48) +
181635 (((u64)p[2]) << 40) +
181636 (((u64)p[3]) << 32) +
181637 (((u64)p[4]) << 24) +
181638 (((u64)p[5]) << 16) +
181639 (((u64)p[6]) << 8) +
181640 (((u64)p[7]) << 0)
181679 i = (i64)__builtin_bswap64((u64)i);
181682 i = (i64)_byteswap_uint64((u64)i);
194267 u64 dummy;
195362 u64 x = SESSION_UINT32(aRec);
195419 u64 i;
195421 i = (u64)sqlite3_value_int64(pValue);
195424 assert( sizeof(double)==8 && sizeof(u64)==8 );
201121 typedef sqlite3_uint64 u64;
201465 static u64 sqlite3Fts5IndexEntryCksum(
201566 static int sqlite3Fts5IndexIntegrityCheck(Fts5Index*, u64 cksum);
201598 static u8 sqlite3Fts5GetVarint(const unsigned char*, u64*);
201599 static int sqlite3Fts5PutVarint(unsigned char *p, u64 v);
201976 #define fts5YYMALLOCARGTYPE u64
204129 u64 nNew = pBuf->nSpace ? pBuf->nSpace : 64;
205498 static void *sqlite3Fts5ParserAlloc(void *(*mallocProc)(u64));
205680 static void *fts5ParseAlloc(u64 t){ return sqlite3_malloc64((sqlite3_int64)t);}
209221 u64 nWriteCounter; /* Total leaves written to level 0 */
210167 pLvl->iOff += fts5GetVarint(&pData->p[pLvl->iOff], (u64*)&pLvl->iRowid);
210178 iOff += fts5GetVarint(&pData->p[iOff], (u64*)&iVal);
210285 fts5GetVarint(&a[iOff], (u64*)&iVal);
210511 iOff += sqlite3Fts5GetVarint(&a[iOff], (u64*)&pIter->iRowid);
210657 i += fts5GetVarint(&a[i], (u64*)&iDelta);
210715 pIter->iLeafOffset += fts5GetVarint(a, (u64*)&pIter->iRowid);
210765 fts5GetVarint(&a[iOff], (u64*)&iDelta);
210803 iOff += sqlite3Fts5GetVarint(&pIter->pLeaf->p[iOff], (u64*)&iDelta);
210826 pIter->iLeafOffset = fts5GetVarint(pList, (u64*)&pIter->iRowid);
210881 u64 iDelta;
210907 pIter->iLeafOffset = fts5GetVarint(pList, (u64*)&pIter->iRowid);
210919 iOff += sqlite3Fts5GetVarint(&pLeaf->p[iOff], (u64*)&pIter->iRowid);
211052 iOff += fts5GetVarint(&pLast->p[iOff], (u64*)&pIter->iRowid);
211377 pIter->iLeafOffset = fts5GetVarint(pLeaf->p, (u64*)&pIter->iRowid);
211577 iOff += fts5GetVarint(&a[iOff], (u64*)&pIter->iRowid);
212377 pIter->iLeafOffset = fts5GetVarint(pData->p, (u64*)&pIter->iRowid);
212678 iOff = 1 + fts5GetVarint(&pBuf->p[1], (u64*)&iRowid);
212679 fts5GetVarint(&pBuf->p[iOff], (u64*)&iRowid);
212926 nCopy += fts5GetVarint(&a[nCopy], (u64*)&dummy);
213310 u64 nWrite; /* Initial value of write-counter */
213438 iOff += fts5GetVarint(&pDoclist[iOff], (u64*)&iDelta);
213698 p += fts5GetVarint(p, (u64*)&iDelta);
213763 u64 iVal;
214419 i += fts5GetVarint(&pData->p[i], (u64*)pnRow);
214421 i += fts5GetVarint(&pData->p[i], (u64*)&anSize[iCol]);
214491 static u64 sqlite3Fts5IndexEntryCksum(
214500 u64 ret = iRowid;
214523 u64 cksum1 = 13;
214524 u64 cksum2 = 13;
214559 u64 *pCksum /* IN/OUT: Checksum value */
214562 u64 cksum = *pCksum;
214601 u64 expected,
214602 u64 *pCksum
214609 u64 cksum3 = *pCksum;
214614 u64 ck1 = 0;
214615 u64 ck2 = 0;
214847 fts5GetVarint(&pLeaf->p[iRowidOff], (u64*)&iRowid);
214887 static int sqlite3Fts5IndexIntegrityCheck(Fts5Index *p, u64 cksum){
214889 u64 cksum2 = 0; /* Checksum based on contents of indexes */
214896 u64 cksum3 = 0; /* Checksum based on contents of indexes */
215078 u64 iVal;
215115 iOff = sqlite3Fts5GetVarint(a, (u64*)&iDocid);
215126 iOff += sqlite3Fts5GetVarint(&a[iOff], (u64*)&iDelta);
215158 u64 iVal;
219029 u64 cksum;
221519 u64 v64;
221546 static u8 sqlite3Fts5GetVarint(const unsigned char *p, u64 *v){
221625 *v = ((u64)s)<<32 | a;
221646 *v = ((u64)s)<<32 | a;
221661 *v = ((u64)s)<<32 | a;
221679 *v = ((u64)s)<<32 | a;
221700 *v = ((u64)s)<<32 | a;
221740 static int FTS5_NOINLINE fts5PutVarint64(unsigned char *p, u64 v){
221743 if( v & (((u64)0xff000000)<<32) ){
221765 static int sqlite3Fts5PutVarint(unsigned char *p, u64 v){