• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/crypto/heimdal/lib/sqlite/

Lines Matching defs:i64

536 #define IS_BIG_INT(X)  (((X)&~(i64)0xffffffff)!=0)
7704 typedef sqlite_int64 i64; /* 8-byte signed integer */
7745 #define LARGEST_INT64 (0xffffffff|(((i64)0x7fffffff)<<32))
7746 #define SMALLEST_INT64 (((i64)-1) - LARGEST_INT64)
8072 i64 intKey,
8078 SQLITE_PRIVATE int sqlite3BtreeInsert(BtCursor*, const void *pKey, i64 nKey,
8086 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor*, i64 *pSize);
8109 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *, i64 *);
8219 i64 *pI64; /* Used when p4type is P4_INT64 */
8704 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *, i64);
9178 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file*, void*, int amt, i64 offset);
9179 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file*, const void*, int amt, i64 offset);
9180 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file*, i64 size);
9182 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file*, i64 *pSize);
9465 i64 lastRowid; /* ROWID of most recent insert (see above) */
9534 i64 nDeferredCons; /* Net deferred constraints this transaction. */
9715 i64 nDeferredCons; /* Number of deferred fk violations */
10082 i64 rowid; /* Used by UNPACKED_PREFIX_SEARCH */
11346 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet*, i64);
11347 SQLITE_PRIVATE int sqlite3RowSetTest(RowSet*, u8 iBatch, i64);
11348 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet*, i64*);
11582 SQLITE_PRIVATE int sqlite3Atoi64(const char*, i64*, int, u8);
11597 SQLITE_PRIVATE int sqlite3AddInt64(i64*,i64);
11598 SQLITE_PRIVATE int sqlite3SubInt64(i64*,i64);
11599 SQLITE_PRIVATE int sqlite3MulInt64(i64*,i64);
12609 i64 seqCount; /* Sequence counter */
12610 i64 movetoTarget; /* Argument to the deferred sqlite3BtreeMoveto() */
12611 i64 lastRowid; /* Last rowid from a Next or NextIdx operation */
12669 i64 lastRowid; /* Last insert rowid (sqlite3.lastRowid) */
12691 i64 i; /* Integer value used when MEM_Int is set in flags */
12859 i64 startTime; /* Time when query started - used for profiling */
12861 i64 nFkConstraint; /* Number of imm. FK constraints this VM */
12862 i64 nStmtDefCons; /* Number of def. constraints when stmt started */
12900 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3*, BtCursor *, i64 *);
12912 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem*, i64);
12923 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem*);
13700 t = (time_t)(x.iJD/1000 - 21086676*(i64)10000);
13780 p->iJD = (p->iJD + 43200)/86400 + 21086676*(i64)10000000;
14189 (i64)(x.iJD/1000 - 21086676*(i64)10000));
14397 SQLITE_PRIVATE int sqlite3OsRead(sqlite3_file *id, void *pBuf, int amt, i64 offset){
14401 SQLITE_PRIVATE int sqlite3OsWrite(sqlite3_file *id, const void *pBuf, int amt, i64 offset){
14405 SQLITE_PRIVATE int sqlite3OsTruncate(sqlite3_file *id, i64 size){
14412 SQLITE_PRIVATE int sqlite3OsFileSize(sqlite3_file *id, i64 *pSize){
15025 i64 iSize; /* Size of this allocation */
19264 flag_longlong = sizeof(char*)==sizeof(i64);
19270 i64 v;
19272 v = va_arg(ap,i64);
19647 i64 szNew = p->nChar;
20883 i64 s = 0; /* significand */
21075 SQLITE_PRIVATE int sqlite3Atoi64(const char *zNum, i64 *pNum, int length, u8 enc){
21101 *pNum = -(i64)u;
21103 *pNum = (i64)u;
21703 SQLITE_PRIVATE int sqlite3AddInt64(i64 *pA, i64 iB){
21704 i64 iA = *pA;
21720 SQLITE_PRIVATE int sqlite3SubInt64(i64 *pA, i64 iB){
21731 #define TWOPOWER32 (((i64)1)<<32)
21732 #define TWOPOWER31 (((i64)1)<<31)
21733 SQLITE_PRIVATE int sqlite3MulInt64(i64 *pA, i64 iB){
21734 i64 iA = *pA;
21735 i64 iA1, iA0, iB1, iB0, r;
22631 static int os2Truncate( sqlite3_file *id, i64 nByte ){
27541 i64 newOffset;
27616 static int seekAndWrite(unixFile *id, i64 offset, const void *pBuf, int cnt){
27619 i64 newOffset;
27949 static int unixTruncate(sqlite3_file *id, i64 nByte){
27989 static int unixFileSize(sqlite3_file *id, i64 *pSize){
28027 static int fcntlSizeHint(unixFile *pFile, i64 nByte){
28029 i64 nSize; /* Required file size */
28035 if( nSize>(i64)buf.st_size ){
28054 i64 iWrite; /* Next offset to write to */
28094 rc = fcntlSizeHint(pFile, *(i64 *)pArg);
37068 i64 v; /* ROWID value for this entry */
37154 SQLITE_PRIVATE void sqlite3RowSetInsert(RowSet *p, i64 rowid){
37369 SQLITE_PRIVATE int sqlite3RowSetNext(RowSet *p, i64 *pRowid){
37484 SQLITE_PRIVATE int sqlite3WalOpen(sqlite3_vfs*, sqlite3_file*, const char *, int, i64, Wal**);
37488 SQLITE_PRIVATE void sqlite3WalLimit(Wal*, i64);
37982 i64 iOffset; /* Starting offset in main journal */
37983 i64 iHdrOffset; /* See above */
38188 i64 journalOff; /* Current write offset in the journal file */
38189 i64 journalHdr; /* Byte offset to previous journal header */
38204 i64 journalSizeLimit; /* Size limit for persistent journal files */
38555 static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){
38574 static int write32bits(sqlite3_file *fd, i64 offset, u32 val){
38742 i64 szJ; /* Total size in bytes of journal file pJrnl */
38792 static i64 journalHdrOffset(Pager *pPager){
38793 i64 offset = 0;
38794 i64 c = pPager->journalOff;
38829 const i64 iLimit = pPager->journalSizeLimit; /* Local cache of jsl */
38849 i64 sz;
38995 i64 journalSize, /* Size of the open journal file in bytes */
39001 i64 iHdrOff; /* Offset of journal header being read */
39120 i64 iHdrOff; /* Offset of header in journal file */
39121 i64 jrnlSize; /* Size of journal file on disk */
39634 i64 *pOffset, /* Offset of record to playback */
39766 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
39903 i64 nMasterJournal; /* Size of master journal file */
40015 i64 currentSize, newSize;
40020 newSize = szPage*(i64)nPage;
40132 i64 szJ; /* Size of the journal file in bytes */
40352 i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
40605 i64 n = 0; /* Size of db file in bytes */
40719 i64 szJ; /* Effective size of the main journal */
40720 i64 iHdrOff; /* End of first segment of main-journal records */
40806 i64 offset = pSavepoint->iSubRec*(4+pPager->pageSize);
41024 i64 nByte = 0;
41419 i64 iNextHdrOffset;
41560 i64 offset = (pgno-1)*(i64)pPager->pageSize; /* Offset to write */
41653 i64 offset = pPager->nSubRec*(4+pPager->pageSize);
42881 i64 iOff = pPager->journalOff;
44156 SQLITE_PRIVATE i64 sqlite3PagerJournalSizeLimit(Pager *pPager, i64 iLimit){
44772 WAL_HDRSIZE + ((iFrame)-1)*(i64)((szPage)+WAL_FRAME_HDRSIZE) \
44784 i64 mxWalSize; /* Truncate WAL to this size upon reset */
45425 i64 nSize; /* Size of log file */
45461 i64 iOffset; /* Next offset to read from log file */
45618 i64 mxWalSize, /* Truncate WAL to this size on reset */
45676 SQLITE_PRIVATE void sqlite3WalLimit(Wal *pWal, i64 iLimit){
46071 i64 nSize; /* Current size of database file */
46083 i64 nReq = ((i64)mxPage * szPage);
46092 i64 iOffset;
46099 iOffset = (iDbpage-1)*(i64)szPage;
46108 i64 szDb = pWal->hdr.nPage*(i64)szPage;
46713 i64 iOffset;
46931 i64 sz;
47043 i64 iOffset; /* Write offset in log file */
47072 i64 iSegment = sqlite3OsSectorSize(pWal->pWalFd);
47073 i64 iOffset = walFrameOffset(iFrame+1, szPage);
47791 i64 nKey; /* The key for INTKEY tables, or number of bytes in key */
47834 i64 nKey; /* Size of pKey, or last integer key */
48729 i64 iRow, /* The rowid that might be changing */
48911 i64 nKey, /* Integer key for tables. Size of pKey for indices */
48921 assert( nKey==(i64)(int)nKey );
50080 assert( sizeof(i64)==8 || sizeof(i64)==4 );
51925 SQLITE_PRIVATE int sqlite3BtreeKeySize(BtCursor *pCur, i64 *pSize){
52683 i64 intKey, /* The table key */
52750 i64 nCellKey;
53509 const void *pKey, i64 nKey, /* The key */
54939 const void *pKey, i64 nKey, /* The key of the new record */
55628 SQLITE_PRIVATE int sqlite3BtreeCount(BtCursor *pCur, i64 *pnEntry){
55629 i64 nEntry = 0; /* Value to return in *pnEntry */
55879 i64 *pnParentMinKey,
55880 i64 *pnParentMaxKey
55891 i64 nMinKey = 0;
55892 i64 nMaxKey = 0;
56666 const i64 iEnd = (i64)iSrcPg*(i64)nSrcPgsz;
56673 i64 iOff;
56711 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){
56746 static int backupTruncateFile(sqlite3_file *pFile, i64 iSize){
56747 i64 iCurrent;
56905 const i64 iSize = (i64)pgszSrc * (i64)nSrcPage;
56907 i64 iOff;
56908 i64 iEnd;
56911 assert( (i64)nDestTruncate*(i64)pgszDest >= iSize || (
57465 static i64 doubleToInt64(double r){
57477 static const i64 maxInt = LARGEST_INT64;
57478 static const i64 minInt = SMALLEST_INT64;
57489 return (i64)r;
57505 SQLITE_PRIVATE i64 sqlite3VdbeIntValue(Mem *pMem){
57515 i64 value = 0;
57672 SQLITE_PRIVATE void sqlite3VdbeMemSetInt64(Mem *pMem, i64 val){
58205 sqlite3VdbeMemSetInt64(pVal, (i64)pExpr->u.iValue*negInt);
60129 i64 offset = 0;
60877 # define MAX_6BYTE ((((i64)0x00008000)<<32)-1)
60878 i64 i = pMem->u.i;
61078 pMem->u.i = *(i64*)&x;
61103 pMem->u.i = *(i64*)&x;
61354 SQLITE_PRIVATE int sqlite3VdbeIdxRowid(sqlite3 *db, BtCursor *pCur, i64 *rowid){
61355 i64 nCellKey = 0;
61439 i64 nCellKey = 0;
61775 sqlite3VdbeMemSetInt64(&pCtx->s, (i64)iVal);
61777 SQLITE_API void sqlite3_result_int64(sqlite3_context *pCtx, i64 iVal){
62247 ** of type i64, on certain architecture (x86) with certain compiler
62630 return sqlite3_bind_int64(p, i, (i64)iValue);
63266 i64 iValue;
63669 i64 lastRowid = db->lastRowid; /* Saved value of the last insert ROWID */
63700 i64 nByte;
63704 i64 iA; /* Integer value of left operand */
63705 i64 iB; /* Integer value of right operand */
63717 i64 iA;
63719 i64 iB;
63747 i64 payloadSize64; /* Number of bytes in the record */
63779 i64 nByte; /* Data space required for this record */
63792 i64 nEntry;
63851 i64 iKey; /* The rowid we are to seek to */
63872 i64 R; /* Rowid stored in register P3 */
63881 i64 v; /* The new rowid */
63891 i64 iKey; /* The integer ROWID or key for the record to be inserted */
63900 i64 iKey;
63914 i64 n64;
63918 i64 v;
63954 i64 rowid;
63990 i64 val;
64698 i64 nByte;
64773 i64 iA; /* Integer value of left operand */
64774 i64 iB; /* Integer value of right operand */
64823 u.af.iA = (i64)u.af.rA;
64824 u.af.iB = (i64)u.af.rB;
65019 i64 iA;
65021 i64 iB;
65657 i64 payloadSize64; /* Number of bytes in the record */
65997 i64 nByte; /* Data space required for this record */
66118 i64 nEntry;
66919 i64 iKey; /* The rowid we are to seek to */
67213 i64 R; /* Rowid stored in register P3 */
67354 i64 v; /* The new rowid */
67392 # define MAX_ROWID (i64)( (((u64)0x7fffffff)<<32) | (u64)0xffffffff )
67538 i64 iKey; /* The integer ROWID or key for the record to be inserted */
67625 i64 iKey;
67751 i64 n64;
67822 i64 v;
68156 i64 rowid;
68591 i64 val;
69053 sqlite3VdbeMemSetInt64(u.cg.pMem, (i64)u.cg.aRes[u.cg.i]);
70377 i64 iWriteOff; /* Current write offset within file pTemp1 */
70378 i64 iReadOff; /* Current read offset within file pTemp1 */
70392 i64 iReadOff; /* Current read offset */
70393 i64 iEof; /* 1 byte past EOF for this iterator */
70489 i64 iVal, /* Value to write as a varint */
70490 i64 *piOffset /* IN/OUT: Write offset in file pFile */
70516 i64 *piOffset, /* IN/OUT: Read offset in pFile */
70517 i64 *piVal /* OUT: Value read from file */
70520 i64 iOff = *piOffset; /* Offset in file to read from */
70540 i64 iStart, /* Start offset in pFile */
70542 i64 *pnByte /* IN/OUT: Increment this value by PMA size */
70555 i64 nByte; /* Total size of PMA in bytes */
70845 i64 iOff = pSorter->iWriteOff;
70935 i64 *pnByte /* Sum of bytes in all opened PMAs */
70940 i64 nByte = 0; /* Total bytes in all opened PMAs */
70968 i64 iWrite2 = 0; /* Write offset for pTemp2 */
71006 i64 nWrite; /* Number of bytes in new PMA */
73584 i64 i;
74976 i64 value;
84181 i64 iVal = sqlite3_value_int64(argv[0]);
84235 i64 p1, p2;
84353 static void *contextMalloc(sqlite3_context *context, i64 nByte){
84384 z1 = contextMalloc(context, ((i64)n)+1);
84404 z1 = contextMalloc(context, ((i64)n)+1);
84921 zText = (char *)contextMalloc(context, (2*(i64)nBlob)+4);
84945 z = contextMalloc(context, ((i64)i)+((i64)n)+3);
84985 z = zHex = contextMalloc(context, ((i64)n)*2 + 1);
85005 i64 n;
85037 i64 nOut; /* Maximum size of zOut */
85066 zOut = contextMalloc(context, (i64)nOut);
85145 azChar = contextMalloc(context, ((i64)nChar)*(sizeof(char*)+1));
85280 i64 iSum; /* Integer sum */
85281 i64 cnt; /* Number of elements summed */
85306 i64 v = sqlite3_value_int64(argv[0]);
85350 i64 n;
90106 static void returnSingleInt(Parse *pParse, const char *zLabel, i64 value){
90109 i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value));
90542 i64 iLimit = -2;
127140 typedef sqlite3_int64 i64;
127288 i64 iNode;
127300 i64 iRowid;
127361 static i64 readInt64(u8 *p){
127363 (((i64)p[0]) << 56) +
127364 (((i64)p[1]) << 48) +
127365 (((i64)p[2]) << 40) +
127366 (((i64)p[3]) << 32) +
127367 (((i64)p[4]) << 24) +
127368 (((i64)p[5]) << 16) +
127369 (((i64)p[6]) << 8) +
127370 (((i64)p[7]) << 0)
127395 static int writeInt64(u8 *p, i64 i){
127428 static int nodeHash(i64 iNode){
127439 static RtreeNode *nodeHashLookup(Rtree *pRtree, i64 iNode){
127495 i64 iNode, /* Node number to load */
127693 static i64 nodeGetRowid(
128083 i64 iRowid,
128176 i64 iRowid = nodeGetRowid(pRtree, pCsr->pNode, pCsr->iCell);
128199 static int findLeafNode(Rtree *pRtree, i64 iRowid, RtreeNode **ppLeaf){
128204 i64 iNode = sqlite3_column_int64(pRtree->pReadRowid, 0);
128282 i64 iRowid = sqlite3_value_int64(argv[0]);
129174 i64 iRowid,
129289 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
129300 i64 iRowid = nodeGetRowid(pRtree, pLeft, i);
129346 i64 iNode; /* Node number of parent node */
129647 static int newRowid(Rtree *pRtree, i64 *piRowid){
129708 i64 iChild = nodeGetRowid(pRtree, pRoot, 0);