Home | History | Annotate | Download | only in orig

Lines Matching defs:i64

533 #define IS_BIG_INT(X)  (((X)&~(i64)0xffffffff)!=0)
7943 typedef sqlite_int64 i64; /* 8-byte signed integer */
7996 #define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
7997 #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
8326 i64 intKey,
8332 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
8340 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor*, i64 *pSize);
8363 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *, i64 *);
8473 i64 *pI64; /* Used when p4type is P4_INT64 */
8959 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *, i64);
9462 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
9463 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
9464 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file*, i64 size);
9466 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
9721 i64 lastRowid; /* ROWID of most recent insert (see above) */
9799 i64 nDeferredCons; /* Net deferred constraints this transaction. */
9978 i64 nDeferredCons; /* Number of deferred fk violations */
10334 i64 rowid; /* Used by UNPACKED_PREFIX_SEARCH */
10402 i64 i; /* Value if eType is SQLITE_INTEGER */
11629 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet*, i64);
11630 SQLITE_PRIVATE int sqlite3RowSetTest(RowSet*, u8 iBatch, i64);
11631 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet*, i64*);
11866 SQLITE_PRIVATE int sqlite3Atoi64(const char*, i64*, int, u8);
11881 SQLITE_PRIVATE int sqlite3AddInt64(i64*,i64);
11882 SQLITE_PRIVATE int sqlite3SubInt64(i64*,i64);
11883 SQLITE_PRIVATE int sqlite3MulInt64(i64*,i64);
12895 i64 seqCount; /* Sequence counter */
12896 i64 movetoTarget; /* Argument to the deferred sqlite3BtreeMoveto() */
12897 i64 lastRowid; /* Last rowid from a Next or NextIdx operation */
12951 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
12979 i64
13159 i64 startTime; /* Time when query started - used for profiling */
13161 i64 nFkConstraint; /* Number of imm. FK constraints this VM */
13162 i64 nStmtDefCons; /* Number of def. constraints when stmt started */
13206 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
13218 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem*, i64);
13229 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem*);
14036 t = (time_t)(x.iJD/1000 - 21086676*(i64)10000);
14116 p->iJD = (p->iJD + 43200)/86400 + 21086676*(i64)10000000;
14526 (i64)(x.iJD/1000 - 21086676*(i64)10000));
14738 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
14742 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
14746 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file *id, i64 size){
14753 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){
15513 i64 iSize; /* Size of this allocation */
19678 flag_longlong = sizeof(char*)==sizeof(i64);
19684 i64 v;
19686 v = va_arg(ap,i64);
20076 i64 szNew = p->nChar;
21313 i64 s = 0; /* significand */
21511 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){
21537 *pNum = -(i64)u;
21539 *pNum = (i64)u;
22139 SQLITE_PRIVATE int sqlite3AddInt64(i64 *pA, i64 iB){
22140 i64 iA = *pA;
22156 SQLITE_PRIVATE int sqlite3SubInt64(i64 *pA, i64 iB){
22167 #define TWOPOWER32 (((i64)1)<<32)
22168 #define TWOPOWER31 (((i64)1)<<31)
22169 SQLITE_PRIVATE int sqlite3MulInt64(i64 *pA, i64 iB){
22170 i64 iA = *pA;
22171 i64 iA1, iA0, iB1, iB0, r;
23066 static int os2Truncate( sqlite3_file *id, i64 nByte ){
28008 i64 newOffset;
28095 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
28098 i64 newOffset;
28428 static int unixTruncate(sqlite3_file *id, i64 nByte){
28468 static int unixFileSize(sqlite3_file *id, i64 *pSize){
28506 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
28508 i64 nSize; /* Required file size */
28514 if( nSize>(i64)buf.st_size ){
28533 i64 iWrite; /* Next offset to write to */
28589 rc = fcntlSizeHint(pFile, *(i64 *)pArg);
36430 return (int)((-1024*(i64)p->szCache)/(p->szPage+p->szExtra));
37944 i64 v; /* ROWID value for this entry */
38030 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet *p, i64 rowid){
38245 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet *p, i64 *pRowid){
38367 SQLITE_PRIVATE int sqlite3WalOpen(sqlite3_vfs*, sqlite3_file*, const char *, int, i64, Wal**);
38371 SQLITE_PRIVATE void sqlite3WalLimit(Wal*, i64);
38872 i64 iOffset; /* Starting offset in main journal */
38873 i64 iHdrOffset; /* See above */
39078 i64 journalOff; /* Current write offset in the journal file */
39079 i64 journalHdr; /* Byte offset to previous journal header */
39094 i64 journalSizeLimit; /* Size limit for persistent journal files */
39445 static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){
39464 static int write32bits(sqlite3_file *fd, i64 offset, u32 val){
39632 i64 szJ; /* Total size in bytes of journal file pJrnl */
39682 static i64 journalHdrOffset(Pager *pPager){
39683 i64 offset = 0;
39684 i64 c = pPager->journalOff;
39719 const i64 iLimit = pPager->journalSizeLimit; /* Local cache of jsl */
39739 i64 sz;
39885 i64 journalSize, /* Size of the open journal file in bytes */
39891 i64 iHdrOff; /* Offset of journal header being read */
40010 i64 iHdrOff; /* Offset of header in journal file */
40011 i64 jrnlSize; /* Size of journal file on disk */
40524 i64 *pOffset, /* Offset of record to playback */
40656 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
40793 i64 nMasterJournal; /* Size of master journal file */
40905 i64 currentSize, newSize;
40910 newSize = szPage*(i64)nPage;
41034 i64 szJ; /* Size of the journal file in bytes */
41254 i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
41507 i64 n = 0; /* Size of db file in bytes */
41618 i64 szJ; /* Effective size of the main journal */
41619 i64 iHdrOff; /* End of first segment of main-journal records */
41705 i64 offset = (i64)pSavepoint->iSubRec*(4+pPager->pageSize);
41711 assert( offset==(i64)ii*(4+pPager->pageSize) );
41934 i64 nByte = 0;
42329 i64 iNextHdrOffset;
42470 i64 offset = (pgno-1)*(i64)pPager->pageSize; /* Offset to write */
42563 i64 offset = (i64)pPager->nSubRec*(4+pPager->pageSize);
43795 i64 iOff = pPager->journalOff;
45097 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *pPager, i64 iLimit){
45736 WAL_HDRSIZE + ((iFrame)-1)*(i64)((szPage)+WAL_FRAME_HDRSIZE) \
45748 i64 mxWalSize; /* Truncate WAL to this size upon reset */
46394 i64 nSize; /* Size of log file */
46430 i64 iOffset; /* Next offset to read from log file */
46588 i64 mxWalSize, /* Truncate WAL to this size on reset */
46653 SQLITE_PRIVATE void sqlite3WalLimit(Wal *pWal, i64 iLimit){
47048 i64 nSize; /* Current size of database file */
47060 i64 nReq = ((i64)mxPage * szPage);
47069 i64 iOffset;
47076 iOffset = (iDbpage-1)*(i64)szPage;
47085 i64 szDb = pWal->hdr.nPage*(i64)szPage;
47134 static void walLimitSize(Wal *pWal, i64 nMax){
47135 i64 sz;
47725 i64 iOffset;
48055 i64 iOffset; /* Next byte to write in WAL file */
48179 i64 sz = pWal->mxWalSize;
48894 i64 nKey; /* The key for INTKEY tables, or number of bytes in key */
48940 i64 nKey; /* Size of pKey, or last integer key */
49832 i64 iRow, /* The rowid that might be changing */
50014 i64 nKey, /* Integer key for tables. Size of pKey for indices */
50024 assert( nKey==(i64)(int)nKey );
51187 assert( sizeof(i64)==8 || sizeof(i64)==4 );
53040 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor *pCur, i64 *pSize){
53345 rc = sqlite3OsRead(fd, aWrite, a+4, (i64)pBt->pageSize*(nextPage-1));
53842 i64 intKey, /* The table key */
53909 i64 nCellKey;
54680 const void *pKey, i64 nKey, /* The key */
56123 const void *pKey, i64 nKey, /* The key of the new record */
56815 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *pCur, i64 *pnEntry){
56816 i64 nEntry = 0; /* Value to return in *pnEntry */
57066 i64 *pnParentMinKey,
57067 i64 *pnParentMaxKey
57078 i64 nMinKey = 0;
57079 i64 nMaxKey = 0;
57855 const i64 iEnd = (i64)iSrcPg*(i64)nSrcPgsz;
57862 i64 iOff;
57900 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){
57935 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){
57936 i64 iCurrent;
58094 const i64 iSize = (i64)pgszSrc * (i64)nSrcPage;
58096 i64 iOff;
58097 i64 iEnd;
58100 assert( (i64)nDestTruncate*(i64)pgszDest >= iSize || (
58314 i64 nByte = sqlite3BtreeGetPageSize(pFrom)*(i64)sqlite3BtreeLastPage(pFrom);
58664 static i64 doubleToInt64(double r){
58676 static const i64 maxInt = LARGEST_INT64;
58677 static const i64 minInt = SMALLEST_INT64;
58688 return (i64)r;
58704 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem *pMem){
58714 i64 value = 0;
58877 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem *pMem, i64 val){
59410 sqlite3VdbeMemSetInt64(pVal, (i64)pExpr->u.iValue*negInt);
61344 i64 offset = 0;
62092 # define MAX_6BYTE ((((i64)0x00008000)<<32)-1)
62093 i64 i = pMem->u.i;
62293 pMem->u.i = *(i64*)&x;
62318 pMem->u.i = *(i64*)&x;
62557 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
62558 i64 nCellKey = 0;
62642 i64 nCellKey = 0;
62978 sqlite3VdbeMemSetInt64(&pCtx->s, (i64)iVal);
62980 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
63450 ** of type i64, on certain architectures (x86) with certain compiler
63833 return sqlite3_bind_int64(p, i, (i64)iValue);
64588 i64 iValue;
64991 i64 lastRowid = db->lastRowid; /* Saved value of the last insert ROWID */
65025 i64 nByte;
65029 i64 iA; /* Integer value of left operand */
65030 i64 iB; /* Integer value of right operand */
65042 i64 iA;
65044 i64 iB;
65072 i64 payloadSize64; /* Number of bytes in the record */
65104 i64 nByte; /* Data space required for this record */
65117 i64 nEntry;
65176 i64 iKey; /* The rowid we are to seek to */
65197 i64 R; /* Rowid stored in register P3 */
65206 i64 v; /* The new rowid */
65216 i64 iKey; /* The integer ROWID or key for the record to be inserted */
65225 i64 iKey;
65239 i64 n64;
65243 i64 v;
65279 i64 rowid;
65315 i64 val;
66039 i64 nByte;
66114 i64 iA; /* Integer value of left operand */
66115 i64 iB; /* Integer value of right operand */
66164 u.ag.iA = (i64)u.ag.rA;
66165 u.ag.iB = (i64)u.ag.rB;
66367 i64 iA;
66369 i64 iB;
67005 i64 payloadSize64; /* Number of bytes in the record */
67345 i64 nByte; /* Data space required for this record */
67466 i64 nEntry;
68269 i64 iKey; /* The rowid we are to seek to */
68563 i64 R; /* Rowid stored in register P3 */
68704 i64 v; /* The new rowid */
68742 # define MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff )
68888 i64 iKey; /* The integer ROWID or key for the record to be inserted */
68975 i64 iKey;
69101 i64 n64;
69172 i64 v;
69505 i64 rowid;
69941 i64 val;
70414 sqlite3VdbeMemSetInt64(u.ch.pMem, (i64)u.ch.aRes[u.ch.i]);
71739 i64 iWriteOff; /* Current write offset within file pTemp1 */
71740 i64 iReadOff; /* Current read offset within file pTemp1 */
71758 i64 iReadOff; /* Current read offset */
71759 i64 iEof; /* 1 byte past EOF for this iterator */
71855 i64 iVal, /* Value to write as a varint */
71856 i64 *piOffset /* IN/OUT: Write offset in file pFile */
71882 i64 *piOffset, /* IN/OUT: Read offset in pFile */
71883 i64 *piVal /* OUT: Value read from file */
71886 i64 iOff = *piOffset; /* Offset in file to read from */
71906 i64 iStart, /* Start offset in pFile */
71908 i64 *pnByte /* IN/OUT: Increment this value by PMA size */
71921 i64 nByte; /* Total size of PMA in bytes */
72211 i64 iOff = pSorter->iWriteOff;
72301 i64 *pnByte /* Sum of bytes in all opened PMAs */
72306 i64 nByte = 0; /* Total bytes in all opened PMAs */
72334 i64 iWrite2 = 0; /* Write offset for pTemp2 */
72372 i64 nWrite; /* Number of bytes in new PMA */
74956 i64 i;
76368 i64 value;
79485 i64 iRowid; /* Rowid in main table of the key */
79563 i64 rowid = sqlite3_value_int64(argv[3]);
86261 i64 iVal = sqlite3_value_int64(argv[0]);
86315 i64 p1, p2;
86433 static void *contextMalloc(sqlite3_context *context, i64 nByte){
86464 z1 = contextMalloc(context, ((i64)n)+1);
86483 z1 = contextMalloc(context, ((i64)n)+1);
86999 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
87023 z = contextMalloc(context, ((i64)i)+((i64)n)+3);
87063 z = zHex = contextMalloc(context, ((i64)n)*2 + 1);
87083 i64 n;
87115 i64 nOut; /* Maximum size of zOut */
87144 zOut = contextMalloc(context, (i64)nOut);
87223 azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1));
87358 i64 iSum; /* Integer sum */
87359 i64 cnt; /* Number of elements summed */
87384 i64 v = sqlite3_value_int64(argv[0]);
87428 i64 n;
92211 static void returnSingleInt(Parse *pParse, const char *zLabel, i64 value){
92214 i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value));
92686 i64 iLimit = -2;
105002 i64 v;
105014 r = (i64)v;
130224 typedef sqlite3_int64 i64;
130372 i64 iNode;
130384 i64 iRowid;
130445 static i64 readInt64(u8 *p){
130447 (((i64)p[0]) << 56) +
130448 (((i64)p[1]) << 48) +
130449 (((i64)p[2]) << 40) +
130450 (((i64)p[3]) << 32) +
130451 (((i64)p[4]) << 24) +
130452 (((i64)p[5]) << 16) +
130453 (((i64)p[6]) << 8) +
130454 (((i64)p[7]) << 0)
130479 static int writeInt64(u8 *p, i64 i){
130512 static int nodeHash(i64 iNode){
130523 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
130579 i64 iNode, /* Node number to load */
130777 static i64 nodeGetRowid(
131167 i64 iRowid,
131260 i64 iRowid = nodeGetRowid(pRtree, pCsr->pNode, pCsr->iCell);
131283 static int findLeafNode(Rtree *pRtree, i64 iRowid, RtreeNode **ppLeaf){
131288 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
131366 i64 iRowid = sqlite3_value_int64(argv[0]);
132263 i64 iRowid,
132378 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
132389 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
132435 i64 iNode; /* Node number of parent node */
132736 static int newRowid(Rtree *pRtree, i64 *piRowid){
132797 i64 iChild = nodeGetRowid(pRtree, pRoot, 0);