Home | History | Annotate | Download | only in dist

Lines Matching full:i64

6609 typedef sqlite_int64 i64;          /* 8-byte signed integer */
6650 #define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
6651 #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
6979 i64 intKey,
6985 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
6993 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor*, i64 *pSize);
7014 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *, i64 *);
7121 i64 *pI64; /* Used when p4type is P4_INT64 */
7591 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *, i64);
8049 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
8050 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
8051 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file*, i64 size);
8053 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
8327 i64 lastRowid; /* ROWID of most recent insert (see above) */
8391 i64 nDeferredCons; /* Net deferred constraints this transaction. */
8542 i64 nDeferredCons; /* Number of deferred fk violations */
8907 i64 rowid; /* Used by UNPACKED_PREFIX_SEARCH */
10121 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet*, i64);
10122 SQLITE_PRIVATE int sqlite3RowSetTest(RowSet*, u8 iBatch, i64);
10123 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet*, i64*);
10357 SQLITE_PRIVATE int sqlite3Atoi64(const char*, i64*);
11386 t = (time_t)(x.iJD/1000 - 21086676*(i64)10000);
11488 p->iJD = (p->iJD + 43200)/86400 + 21086676*(i64)10000000;
11893 (i64)(x.iJD/1000 - 21086676*(i64)10000));
12106 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
12110 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
12114 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file *id, i64 size){
12121 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){
12702 i64 iSize; /* Size of this allocation */
15662 overage = (int)(sqlite3_memory_used() - (i64)n);
16710 flag_longlong = sizeof(char*)==sizeof(i64);
16716 i64 v;
16718 v = va_arg(ap,i64);
17086 i64 szNew = p->nChar;
17567 i64 lastRowid; /* Last rowid from a Next or NextIdx operation */
17576 i64 movetoTarget; /* Argument to the deferred sqlite3BtreeMoveto() */
17581 i64 seqCount; /* Sequence counter */
17632 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
17657 i64 i; /* Integer value. */
17828 i64 startTime; /* Time when query started - used for profiling */
17833 i64 nFkConstraint; /* Number of imm. FK constraints this VM */
17834 i64 nStmtDefCons; /* Number of def. constraints when stmt started */
17869 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
17881 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem*, i64);
17888 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem*);
18742 i64 s = 0; /* significand */
18898 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum){
18899 i64 v = 0;
20327 static int os2Truncate( sqlite3_file *id, i64 nByte ){
24254 i64 newOffset;
24326 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
24328 i64 newOffset;
24611 static int unixTruncate(sqlite3_file *id, i64 nByte){
24640 static int unixFileSize(sqlite3_file *id, i64 *pSize){
31088 i64 v; /* ROWID value for this entry */
31174 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet *p, i64 rowid){
31389 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet *p, i64 *pRowid){
31568 i64 iOffset; /* Starting offset in main journal */
31569 i64 iHdrOffset; /* See above */
31715 i64 journalOff; /* Current write offset in the journal file */
31716 i64 journalHdr; /* Byte offset to previous journal header */
31743 i64 journalSizeLimit; /* Size limit for persistent journal files */
31874 static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){
31892 static int write32bits(sqlite3_file *fd, i64 offset, u32 val){
32033 i64 szJ; /* Total size in bytes of journal file pJrnl */
32083 static i64 journalHdrOffset(Pager *pPager){
32084 i64 offset = 0;
32085 i64 c = pPager->journalOff;
32120 const i64 iLimit = pPager->journalSizeLimit; /* Local cache of jsl */
32140 i64 sz;
32285 i64 journalSize, /* Size of the open journal file in bytes */
32291 i64 iHdrOff; /* Offset of journal header being read */
32405 i64 iHdrOff; /* Offset of header in journal file */
32406 i64 jrnlSize; /* Size of journal file on disk */
32848 i64 *pOffset, /* Offset of record to playback */
32946 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
33077 i64 nMasterJournal; /* Size of master journal file */
33186 i64 currentSize, newSize;
33189 newSize = pPager->pageSize*(i64)nPage;
33296 i64 szJ; /* Size of the journal file in bytes */
33513 i64 szJ; /* Effective size of the main journal */
33514 i64 iHdrOff; /* End of first segment of main-journal records */
33593 i64 offset = pSavepoint->iSubRec*(4+pPager->pageSize);
33904 i64 n = 0; /* File size in bytes returned by OsFileSize() */
34175 i64 iNextHdrOffset;
34317 i64 offset = (pgno-1)*(i64)pPager->pageSize; /* Offset to write */
34375 i64 offset = pPager->nSubRec*(4+pPager->pageSize);
34911 i64 iOffset; /* Byte offset of file to read from */
34921 iOffset = (pgno-1)*(i64)pPager->pageSize;
36757 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *pPager, i64 iLimit){
37240 i64 nKey; /* The key for INTKEY tables, or number of bytes in key */
37287 i64 nKey; /* Size of pKey, or last integer key */
38239 i64 iRow, /* The rowid that might be changing */
38424 i64 nKey, /* Integer key for tables. Size of pKey for indices */
38433 assert( nKey==(i64)(int)nKey );
39560 assert( sizeof(i64)==8 || sizeof(i64)==4 );
41286 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor *pCur, i64 *pSize){
42042 i64 intKey, /* The table key */
42109 i64 nCellKey;
42849 const void *pKey, i64 nKey, /* The key */
44253 const void *pKey, i64 nKey, /* The key of the new record */
44929 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *pCur, i64 *pnEntry){
44930 i64 nEntry = 0; /* Value to return in *pnEntry */
45175 i64 *pnParentMinKey,
45176 i64 *pnParentMaxKey
45187 i64 nMinKey = 0;
45188 i64 nMaxKey = 0;
45888 const i64 iEnd = (i64)iSrcPg*(i64)nSrcPgsz;
45891 i64 iOff;
45909 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){
45944 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){
45945 i64 iCurrent;
46089 const i64 iSize = (i64)nSrcPagesize * (i64)nSrcPage;
46093 assert( (i64)nDestTruncate*(i64)nDestPagesize >= iSize || (
46101 i64 iOff;
46102 i64 iEnd = MIN(PENDING_BYTE + nDestPagesize, iSize);
46627 static i64 doubleToInt64(double r){
46635 static const i64 maxInt = LARGEST_INT64;
46636 static const i64 minInt = SMALLEST_INT64;
46647 return (i64)r;
46662 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem *pMem){
46672 i64 value;
46779 i64 i;
46835 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem *pMem, i64 val){
47324 sqlite3VdbeMemSetInt64(pVal, (i64)pExpr->u.iValue);
49128 i64 offset = 0;
49854 # define MAX_6BYTE ((((i64)0x00008000)<<32)-1)
49855 i64 i = pMem->u.i;
50049 pMem->u.i = *(i64*)&x;
50074 pMem->u.i = *(i64*)&x;
50335 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
50336 i64 nCellKey = 0;
50420 i64 nCellKey = 0;
50754 sqlite3VdbeMemSetInt64(&pCtx->s, (i64)iVal);
50756 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
51168 ** of type i64, on certain architecture (x86) with certain compiler
51540 return sqlite3_bind_int64(p, i, (i64)iValue);
52169 i64 value;
52605 i64 nByte;
52609 i64 iA; /* Integer value of left operand */
52610 i64 iB; /* Integer value of right operand */
52622 i64 a;
52623 i64 b;
52648 i64 payloadSize64; /* Number of bytes in the record */
52679 i64 nByte; /* Data space required for this record */
52692 i64 nEntry;
52747 i64 iKey; /* The rowid we are to seek to */
52767 i64 R; /* Rowid stored in register P3 */
52776 i64 v; /* The new rowid */
52786 i64 iKey; /* The integer ROWID or key for the record to be inserted */
52795 i64 iKey;
52802 i64 n64;
52806 i64 v;
52843 i64 rowid;
52879 i64 val;
53585 i64 nByte;
53660 i64 iA; /* Integer value of left operand */
53661 i64 iB; /* Integer value of right operand */
53716 u.af.iA = (i64)u.af.rA;
53717 u.af.iB = (i64)u.af.rB;
53892 i64 a;
53893 i64 b;
54475 i64 payloadSize64; /* Number of bytes in the record */
54808 i64 nByte; /* Data space required for this record */
54926 i64 nEntry;
55663 i64 iKey; /* The rowid we are to seek to */
55949 i64 R; /* Rowid stored in register P3 */
56087 i64 v; /* The new rowid */
56126 # define MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff )
56263 i64 iKey; /* The integer ROWID or key for the record to be inserted */
56348 i64 iKey;
56431 i64 n64;
56499 i64 v;
56795 i64 rowid;
57240 i64 val;
62425 i64 value;
71394 i64 iVal = sqlite3_value_int64(argv[0]);
71448 i64 p1, p2;
71556 static void *contextMalloc(sqlite3_context *context, i64 nByte){
71587 z1 = contextMalloc(context, ((i64)n)+1);
71607 z1 = contextMalloc(context, ((i64)n)+1);
72051 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
72075 z = contextMalloc(context, ((i64)i)+((i64)n)+3);
72115 z = zHex = contextMalloc(context, ((i64)n)*2 + 1);
72135 i64 n;
72167 i64 nOut; /* Maximum size of zOut */
72196 zOut = contextMalloc(context, (i64)nOut);
72275 azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1));
72410 i64 iSum; /* Integer sum */
72411 i64 cnt; /* Number of elements summed */
72436 i64 v = sqlite3_value_int64(argv[0]);
72439 i64 iNewSum = p->iSum + v;
72440 int s1 = (int)(p->iSum >> (sizeof(i64)*8-1));
72441 int s2 = (int)(v >> (sizeof(i64)*8-1));
72442 int s3 = (int)(iNewSum >> (sizeof(i64)*8-1));
72485 i64 n;
77084 static void returnSingleInt(Parse *pParse, const char *zLabel, i64 value){
77087 i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value));
77491 i64 iLimit = -2;
107569 typedef sqlite3_int64 i64;
107712 i64 iNode;
107724 i64 iRowid;
107751 static i64 readInt64(u8 *p){
107753 (((i64)p[0]) << 56) +
107754 (((i64)p[1]) << 48) +
107755 (((i64)p[2]) << 40) +
107756 (((i64)p[3]) << 32) +
107757 (((i64)p[4]) << 24) +
107758 (((i64)p[5]) << 16) +
107759 (((i64)p[6]) << 8) +
107760 (((i64)p[7]) << 0)
107785 static int writeInt64(u8 *p, i64 i){
107820 static int nodeHash(i64 iNode){
107831 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
107890 i64 iNode, /* Node number to load */
108063 static i64 nodeGetRowid(
108372 static int nodeRowidIndex(Rtree *pRtree, RtreeNode *pNode, i64 iRowid){
108451 i64 iRowid = nodeGetRowid(pRtree, pCsr->pNode, pCsr->iCell);
108474 static int findLeafNode(Rtree *pRtree, i64 iRowid, RtreeNode **ppLeaf){
108479 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
108513 i64 iRowid = sqlite3_value_int64(argv[0]);
109396 i64 iRowid,
109501 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
109512 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
109543 i64 iNode = sqlite3_column_int64(pRtree->pReadParent, 0);
109824 static int newRowid(Rtree *pRtree, i64 *piRowid){
109866 i64 iDelete; /* The rowid to delete */
109911 i64 iChild = nodeGetRowid(pRtree, pRoot, 0);