Home | History | Annotate | Download | only in orig

Lines Matching defs:double

813 # define double sqlite3_int64
1593 int (*xCurrentTime)(sqlite3_vfs*, double*);
3738 SQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double);
4239 SQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol);
4500 SQLITE_API double sqlite3_value_double(sqlite3_value*);
4751 SQLITE_API void sqlite3_result_double(sqlite3_context*, double);
5609 double estimatedCost; /* Estimated cost of using this index */
7486 # undef double
7526 int (*xGeom)(sqlite3_rtree_geometry *, int nCoord, double *aCoord, int *pRes),
7538 double *aParam; /* Parameters passed to SQL geom function */
7827 # define double sqlite_int64
7941 # define LONGDOUBLE_TYPE long double
8474 double *pReal; /* Used when p4type is P4_REAL */
9771 double notUsed1; /* Spacer */
10401 double r; /* Value if eType is SQLITE_FLOAT */
10795 double nRow; /* Estimated number of rows (for EQP) */
10880 double savedNQueryLoop; /* pParse->nQueryLoop outside the WHERE loop */
10881 double nRowOut; /* Estimated number of output rows */
10950 double nSelectRow; /* Estimated number of result rows */
11132 double nQueryLoop; /* Estimated number of iterations of a query */
11533 SQLITE_PRIVATE int sqlite3IsNaN(double);
11818 SQLITE_PRIVATE int sqlite3AtoF(const char *z, double*, int, u8);
12977 double r; /* Real value */
13222 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem*, double);
13231 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem*);
13601 double s; /* Seconds */
13711 double ms = 0.0;
13723 double rScale = 1.0;
13865 double r;
14085 double r;
14198 double rRounder;
14490 double s = x.s;
14888 double r;
16059 ** two fields form a double-linked list of chunks of related sizes.
19477 ** "*val" is a double such that 0.1 <= *val < 10.0
19559 double rounder; /* Used for rounding floating point values */
19766 realvalue = va_arg(ap,double);
19790 if( sqlite3IsNaN((double)realvalue) ){
21086 SQLITE_PRIVATE int sqlite3IsNaN(double x){
21115 volatile double y = x;
21116 volatile double z = y;
21287 ** Convert this string to a double and write it into *pResult.
21307 SQLITE_PRIVATE int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){
21318 double result;
21404 result = (sign<0 && nDigits) ? -(double)0 : (double)0;
21419 double scale = 1.0;
21448 result = (double)s;
24721 static int os2CurrentTime( sqlite3_vfs *pVfs, double *prNow ){
30112 /* Database filenames are double
30126 /* Generated temporary filenames are always double-zero terminated
30590 static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){
31881 /* Double-check that the aSyscall[] array has been constructed
35201 /* Database filenames are double-zero terminated if they are not
35717 static int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
35791 /* Double-check that the aSyscall[] array has been constructed
58653 ** Convert a 64-bit IEEE double into a 64-bit signed integer.
58654 ** If the double is too large, return 0x8000000000000000.
58664 static i64 doubleToInt64(double r){
58666 /* When floating-point is omitted, double and int64 are the same thing */
58679 if( r<(double)minInt ){
58681 }else if( r>(double)maxInt ){
58726 ** double. If pMem is already a double or an integer, return its
58727 ** value. If it is a string or blob, try to convert it to a double.
58730 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem *pMem){
58736 double)pMem->u.i;
58738 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
58739 double val = (double)0;
58743 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
58744 return (double)0;
58772 if( pMem->r==(double)pMem->u.i
58889 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem *pMem, double val){
59157 double r1, r2;
59159 r1 = (double)pMem1->u.i;
59164 r2 = (double)pMem2->u.i;
59433 pVal->r = (double)LARGEST_INT64;
60337 ** having to double-check to make sure that the result is non-negative. But
62308 static const double r1 = 1.0;
62904 SQLITE_API double sqlite3_value_double(sqlite3_value *pVal){
62960 SQLITE_API void sqlite3_result_double(sqlite3_context *pCtx, double rVal){
63462 = {0, "", (double)0, {0}, 0, MEM_Null, SQLITE_NULL, 0,
63533 SQLITE_API double sqlite3_column_double(sqlite3_stmt *pStmt, int i){
63534 double val = sqlite3_value_double( columnMem(pStmt,i) );
63822 SQLITE_API int sqlite3_bind_double(sqlite3_stmt *pStmt, int i, double rValue){
64587 double rValue;
65031 double rA; /* Real value of left operand */
65032 double rB; /* Real value of right operand */
66116 double rA; /* Real value of left operand */
66117 double rB; /* Real value of right operand */
66158 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
66159 if( u.ag.rA==(double)0 ) goto arithmetic_result_is_null;
66168 u.ag.rB = (double)(u.ag.iB % u.ag.iA);
68306 if( u.bb.iKey==SMALLEST_INT64 && (pIn3->r<(double)u.bb.iKey || pIn3->r>0) ){
68327 if( pIn3->r > (double)u.bb.iKey ) u.bb.iKey++;
68331 if( pIn3->r < (double)u.bb.iKey ) u.bb.iKey--;
73503 ** supplied) and the value of Z is enclosed in double-quotes, then
74760 ** appear to be quoted. If the quotes were of the form "..." (double-quotes)
75563 ** For the purposes of this function, a double-quoted string (ex: "abc")
75586 ** For the purposes of this function, a double-quoted string (ex: "abc")
75928 double savedNQueryLoop = pParse->nQueryLoop;
75935 testcase( pParse->nQueryLoop>(double)1 );
75936 pParse->nQueryLoop = (double)1;
76341 double value;
82537 ** it is quoted using double-quotes.
86286 double rVal = sqlite3_value_double(argv[0]);
86394 double r;
86410 r = (double)((sqlite_int64)(r+0.5));
86412 r = -(double)((sqlite_int64)((-r)+0.5));
87357 double rSum; /* Floating point sum */
87412 sqlite3_result_double(context, p->rSum/(double)p->cnt);
87418 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
87419 sqlite3_result_double(context, p ? p->rSum : (double)0);
91011 int (*bind_double)(sqlite3_stmt*,int,double);
91037 double (*column_double)(sqlite3_stmt*,int iCol);
91097 void (*result_double)(sqlite3_context*,double);
91126 double (*value_double)(sqlite3_value*);
94227 pParse->nQueryLoop = (double)1;
95971 if( p->nSelectRow > (double)n ) p->nSelectRow = (double)n;
96163 && p->nSelectRow > (double)nLimit
96165 p->nSelectRow = (double)nLimit;
98491 p->nSelectRow = (double)LARGEST_INT64;
98607 if( p->nSelectRow>(double)100 ) p->nSelectRow = (double)100;
98609 p->nSelectRow = (double)1;
102742 double rCost; /* Overall cost of pursuing this search strategy */
104269 static double estLog(double N){
104270 double logN = 1;
104271 double x = 10;
104371 double rTotal = 0;
104372 double nRow = 0;
104463 double nTableRow; /* Rows in the input table */
104464 double logN; /* log(nTableRow) */
104465 double costTempIdx; /* per-query cost of the transient index */
104470 if( pParse->nQueryLoop<=(double)1 ){
104491 assert( pParse->nQueryLoop >= (double)1 );
104729 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
104859 double rCost;
104928 /* ((double)2) In case of SQLITE_OMIT_FLOATING_POINT... */
104929 pIdxInfo->estimatedCost = SQLITE_BIG_DBL / ((double)2);
104959 ** Use "(double)2" instead of "2.0" in case OMIT_FLOATING_POINT
104962 if( (SQLITE_BIG_DBL/((double)2))<rCost ){
104963 pCost->rCost = (SQLITE_BIG_DBL/((double)2));
105003 double r, rS;
105223 double *pRangeDiv /* OUT: Reduce search space by this divisor */
105262 *pRangeDiv = (double)p->aiRowEst[0];
105264 *pRangeDiv = (double)p->aiRowEst[0]/(double)(iUpper - iLower);
105277 *pRangeDiv = (double)1;
105278 if( pLower && (pLower->wtFlags & TERM_VNULL)==0 ) *pRangeDiv *= (double)4;
105279 if( pUpper ) *pRangeDiv *= (double)4;
105305 double *pnRow /* Write the revised row estimate here */
105354 double *pnRow /* Write the revised row estimate here */
105357 double nEst; /* Number of rows for a single term */
105358 double nRowEst = (double)0; /* New estimate of the number of rows */
105477 double cost; /* Cost of using pProbe */
105478 double nRow; /* Estimated number of rows in result set */
105479 double log10N = (double)1; /* base-10 logarithm of nRow (inexact) */
105549 double rangeDiv = (double)1; /* Estimated reduction in search space */
105670 nRow = (double)(aiRowEst[nEq] * nInMul);
105683 if( nRow>(double)1 && nEq==1 && pFirstTerm!=0 && aiRowEst[1]>1 ){
107479 if( bestPlan.plan.nRow>=(double)1 ){
107529 pWInfo->nRowOut = (double)1;
112244 case '"': /* single- and double-quoted strings */
112664 double y;
116711 ** For a sequence of tokens contained in double-quotes (i.e. "one two three")
117367 ** Return a copy of input string zInput enclosed in double-quotes (") and
117368 ** with all double quote characters escaped. For example:
123916 ** Return TRUE if the word ends in a double consonant.
130339 ** formatted as a double. This macro assumes that local variable pRtree points
130344 ((double)coord.f) : \
130345 ((double)coord.i) \
130354 double rValue; /* Constraint value. */
130355 int (*xGeom)(sqlite3_rtree_geometry *, int, double *, int *);
130403 int (*xGeom)(sqlite3_rtree_geometry *, int, double *, int *);
130406 double aParam[1];
130418 int (*xGeom)(sqlite3_rtree_geometry *, int, double *, int *);
130984 double aCoord[RTREE_MAX_DIMENSIONS*2];
131014 double cell_min = DCOORD(cell.aCoord[(p->iCoord>>1)*2]);
131015 double cell_max = DCOORD(cell.aCoord[(p->iCoord>>1)*2+1]);
131067 double coord = DCOORD(cell.aCoord[p->iCoord]);
131314 || ((nBlob-sizeof(RtreeMatchArg))%sizeof(double))!=0
131328 || nBlob!=(int)(sizeof(RtreeMatchArg) + (p->nParam-1)*sizeof(double))
131527 pIdxInfo->estimatedCost = (2000000.0 / (double)(iIdx + 1));
131626 double x1;
131627 double x2;
131655 double before;
131656 double after;
132071 double xleft1 = DCOORD(aCell[aLeft[iLeft]].aCoord[iDim*2]);
132072 double xleft2 = DCOORD(aCell[aLeft[iLeft]].aCoord[iDim*2+1]);
132073 double xright1 = DCOORD(aCell[aRight[iRight]].aCoord[iDim*2]);
132074 double xright2 = DCOORD(aCell[aRight[iRight]].aCoord[iDim*2+1]);
133270 sqlite3_snprintf(512-nCell,&zCell[nCell]," %f",(double)cell.aCoord[jj].f);
133346 nBlob = sizeof(RtreeMatchArg) + (nArg-1)*sizeof(double);
133369 int (*xGeom)(sqlite3_rtree_geometry *, int, double *, int *),