Lines Matching defs:double

625 # define double sqlite3_int64
1798 int (*xCurrentTime)(sqlite3_vfs*, double*);
2736 ** the legacy [double-quoted string literal] misfeature for DML statements
2745 ** the legacy [double-quoted string literal] misfeature for DDL statements,
5017 SQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double);
5586 SQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol);
6089 SQLITE_API double sqlite3_value_double(sqlite3_value*);
6528 SQLITE_API void sqlite3_result_double(sqlite3_context*, double);
7793 double estimatedCost; /* Estimated cost of using this index */
8674 ** by enclosing in double-quotes) so as not to confuse the parser.
8700 ** <li> Put all identifier names inside double-quotes. This is the official
10527 ** <dd>^The "double" variable pointed to by the V parameter will be set to the
11142 # undef double
11188 /* The double-precision datatype used by RTree depends on the
11194 typedef double sqlite3_rtree_dbl;
14701 # define double sqlite_int64
14879 # define LONGDOUBLE_TYPE long double
16498 double *pReal; /* Used when p4type is P4_REAL */
17727 double notUsed1; /* Spacer */
20190 u8 bUseLongDouble; /* Make use of long double */
20705 SQLITE_PRIVATE int sqlite3IsNaN(double);
20706 SQLITE_PRIVATE int sqlite3IsOverflow(double);
20736 SQLITE_PRIVATE void sqlite3FpDecode(FpDecode*,double,int,int);
21183 SQLITE_PRIVATE int sqlite3RealSameAsInt(double,sqlite3_int64);
21184 SQLITE_PRIVATE i64 sqlite3RealToI64(double);
21186 SQLITE_PRIVATE int sqlite3AtoF(const char *z, double*, int, u8);
21198 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double);
23328 double r; /* Real value used when MEM_Real is set in flags */
23528 /* The DblquoteStr object holds the text of a double-quoted
23532 ** list is consulted for each double-quoted identifier to see if the
23605 DblquoteStr *pDblStr; /* List of double-quoted string literals */
23721 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem*, double);
23738 SQLITE_PRIVATE int sqlite3IntFloatCompare(i64,double);
23741 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem*);
24291 double s; /* Seconds */
24424 double ms = 0.0;
24436 double rScale = 1.0;
24607 static void setRawDateNumber(DateTime *p, double r){
24637 double r;
24904 double r = p->s*1000.0 + 210866760000000.0;
24950 double r;
25160 double rRounder;
25650 double s = x.s;
26338 double r;
27536 ** two fields form a double-linked list of chunks of related sizes.
31263 static double getDoubleArg(PrintfArguments *p){
31337 double realvalue; /* Value for real types */
31628 realvalue = va_arg(ap,double);
34966 SQLITE_PRIVATE int sqlite3IsNaN(double x){
34984 SQLITE_PRIVATE int sqlite3IsOverflow(double x){
35376 static void dekkerMul2(volatile double *x, double y, double yy){
35385 volatile double tx, ty, p, q, c, cc;
35386 double hx, hy;
35408 ** Convert this string to a double and write it into *pResult.
35438 SQLITE_PRIVATE int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){
35583 *pResult = (double)r;
35586 double rr[2];
35588 rr[0] = (double)s;
35593 rr[1] = s>=s2 ? (double)(s - s2) : -(double)(s2 - s);
35937 SQLITE_PRIVATE void sqlite3FpDecode(FpDecode *p, double r, int iRound, int mxRound){
35983 /* If high-precision floating point is not available using "long double",
35984 ** then use Dekker-style double-double computation to increase the
35992 double rr[2];
36665 ** Convert a double into a LogEst
36668 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double x){
37467 static int kvvfsCurrentTime(sqlite3_vfs*, double*);
38322 static int kvvfsCurrentTime(sqlite3_vfs *pVfs, double *pTimeOut){
44710 /* Database filenames are double-zero terminated if they are not
44724 /* Generated temporary filenames are always double-zero terminated
45290 static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){
51772 /* Database filenames are double-zero terminated if they are not
52662 static int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
52998 /* static int memdbCurrentTime(sqlite3_vfs*, double*); */
53583 static int memdbCurrentTime(sqlite3_vfs *pVfs, double *pTimeOut){
55268 ** The pLruNext and pLruPrev pointers form a double-linked circular list
67491 ** account for the double-read and the memory barrier. The use of mutexes
71093 ** statements only and for the purpose of double-checking that the btree code
82906 (p->flags & MEM_IntReal)!=0 ? (double)p->u.i : p->u.r);
83138 ** to be a double-zero byte at an even byte boundary in order to
83430 ** double. If pMem is already a double or an integer, return its
83431 ** value. If it is a string or blob, try to convert it to a double.
83434 static SQLITE_NOINLINE double memRealValue(Mem *pMem){
83435 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
83436 double val = (double)0;
83440 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem *pMem){
83448 return (double)pMem->u.i;
83452 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
83453 return (double)0;
83535 ** comparison of "r1==(double)i" you sometimes get an answer of false even
83536 ** though the r1 and (double)i values are bit-for-bit the same.
83538 SQLITE_PRIVATE int sqlite3RealSameAsInt(double r1, sqlite3_int64 i){
83539 double r2 = (double)i;
83549 SQLITE_PRIVATE i64 sqlite3RealToI64(double r){
83762 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem *pMem, double val){
84487 pVal->u.r = -(double)SMALLEST_INT64;
84937 ** zId of length nId is a double-quoted identifier. Check to see if
84942 const char *zId /* The double-quoted identifier, already dequoted */
85010 ** operation (without SQLITE_TEST_REALLOC_STRESS) is to double the current
88746 pMem->u.r = (double)pMem->u.i;
88898 static const double r1 = 1.0;
89342 static int SQLITE_NOINLINE doubleLt(double a, double b){ return a<b; }
89343 static int SQLITE_NOINLINE doubleEq(double a, double b){ return a==b; }
89349 ** equal to, or greater than the second (double).
89351 SQLITE_PRIVATE int sqlite3IntFloatCompare(i64 i, double r){
89370 testcase( doubleLt(((double)i),r) );
89371 testcase( doubleLt(r,((double)i)) );
89372 testcase( doubleEq(r,((double)i)) );
89373 return (((double)i)<r) ? -1 : (((double)i)>r);
90578 SQLITE_API double sqlite3_value_double(sqlite3_value *pVal){
90848 SQLITE_API void sqlite3_result_double(sqlite3_context *pCtx, double rVal){
91759 SQLITE_API double sqlite3_column_double(sqlite3_stmt *pStmt, int i){
91760 double val = sqlite3_value_double( columnMem(pStmt,i) );
92101 SQLITE_API int sqlite3_bind_double(sqlite3_stmt *pStmt, int i, double rValue){
92196 (pValue->flags & MEM_Real) ? pValue->u.r : (double)pValue->u.i
92816 double r = 1.0;
92822 *(double*)pOut = r*sqlite3LogEstToInt(x);
93433 static int alsoAnInt(Mem *pRec, double rValue, i64 *piValue){
93459 double rValue;
94954 double rA; /* Real value of left operand */
94955 double rB; /* Real value of right operand */
94999 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
95000 if( rA==(double)0 ) goto arithmetic_result_is_null;
95009 rB = (double)(iB % iA);
96392 pIn1->u.r = (double)pIn1->u.i;
96455 pIn1->u.r = (double)pIn1->u.i;
96660 pRec->u.r = (double)pRec->u.i;
105955 pIdxInfo->estimatedCost = (double)100;
106883 ** Return TRUE if the double-quoted string mis-feature should be supported.
107440 ** supplied) and the value of Z is enclosed in double-quotes, then
107453 /* If a double-quoted identifier does not match any known column name,
107457 ** to be compatible with MySQL 3.x, which used double-quotes for strings.
107468 "double-quoted string literal: \"%w\"", zCol);
107665 double r = -1.0;
109926 ** appear to be quoted. If the quotes were of the form "..." (double-quotes)
111544 ** For the purposes of this function, a double-quoted string (ex: "abc")
111771 ** For the purposes of this function, a double-quoted string (ex: "abc")
113060 double value;
116226 ** Generate VM code to replace any double-quoted strings (but not double-quoted
116785 /* Ensure the schema contains no double-quoted strings */
117391 /* Dequote the double-quoted token. Then requote it again, this time
118019 ** double-quotes use single quotes instead.
123451 ** it is quoted using double-quotes.
128872 double rVal = sqlite3_value_double(argv[0]);
129092 double r;
129110 r = (double)((sqlite_int64)(r+(r<0?-0.5:+0.5)));
129749 double r1, r2;
130398 double rSum; /* Running sum as as a double */
130399 double rErr; /* Error term for Kahan-Babushka-Neumaier summation */
130416 volatile double r
130418 volatile double s = pSum->rSum;
130419 volatile double t = s + r;
130439 kahanBabuskaNeumaierStep(pSum, (double)iVal);
130452 p->rSum = (double)(iVal - iSm);
130453 p->rErr = (double)iSm;
130455 p->rSum = (double)iVal;
130557 double r;
130562 r = (double)(p->iSum);
130564 sqlite3_result_double(context, r/(double)p->cnt);
130569 double r = 0.0;
130576 r = (double)(p->iSum);
131008 double (*x)(double) = (double(*)(double))sqlite3_user_data(context);
131023 static double xCeil(double x){ return ceil(x); }
131024 static double xFloor(double x){ return floor(x); }
131051 double x, b, ans;
131094 static double degToRad(double x){ return x*(M_PI/180.0); }
131095 static double radToDeg(double x){ return x*(180.0/M_PI); }
131108 double v0, ans;
131109 double (*x)(double);
131114 x = (double(*)(double))sqlite3_user_data(context);
131130 double v0, v1, ans;
131131 double (*x)(double,double);
131139 x = (double(*)(double,double))sqlite3_user_data(context);
131168 double x;
131190 double x;
136469 int (*bind_double)(sqlite3_stmt*,int,double);
136495 double (*column_double)(sqlite3_stmt*,int iCol);
136555 void (*result_double)(sqlite3_context*,double);
136584 double (*value_double)(sqlite3_value*);
141591 pIdxInfo->estimatedCost = (double)1;
141605 pIdxInfo->estimatedCost = (double)2147483647;
141612 pIdxInfo->estimatedCost = (double)20;
160514 double rDummy;
166260 pIdxInfo->estimatedCost = SQLITE_BIG_DBL / (double)2;
168107 pLoop->cId, (double)sqlite3LogEstToInt(nSearch), pTab->zName,
168108 (double)sqlite3LogEstToInt(pTab->nRowLogEst)));
169571 double fVal = sqlite3_value_double(apArg[1]);
169705 double r = (double)p->nValue / (double)(p->nTotal-1);
169748 double r = (double)(p->nStep) / (double)(p->nTotal);
179556 case '"': /* single- and double-quoted strings */
179918 ** Determine whether or not high-precision (long double) floating point
179923 /* If the size of "long double" is not more than 8, then
179927 /* Just because sizeof(long double)>8 does not mean that the underlying
179930 ** processors will make long double work like double, even though long
179931 ** double takes up more space. The only way to determine if long double
180119 double y;
183129 ** Legacy behavior is 3 (double-quoted string literals are allowed anywhere)
184362 ** double fIn, // Input value
184371 double rIn = va_arg(ap, double);
186181 ** For a sequence of tokens contained in double-quotes (i.e. "one two three")
186987 ** Return a copy of input string zInput enclosed in double-quotes (") and
186988 ** with all double quote characters escaped. For example:
194816 ** Return TRUE if the word ends in a double consonant.
205510 ** under construction. Enclose the string in double-quotes ("...") and
205511 ** escape any double-quotes or backslash characters contained within the
207943 double r;
208092 double r = sqlite3_value_double(pArg);
208562 ** double-quotes around strings and returning the unquoted string "null"
210533 typedef double RtreeDValue; /* High accuracy coordinate */
210630 ** formatted as a RtreeDValue (double or int64). This macro assumes that local
210639 ((double)coord.f) : \
210640 ((double)coord.i) \
211599 sqlite3_rtree_dbl val; /* Coordinate value convert to a double */
211656 RtreeDValue xN; /* Coordinate value converted to a double */
212157 SQLITE_PRIVATE int sqlite3IntFloatCompare(i64,double);
212245 p->u.rValue = (double)iVal;
212414 pIdxInfo->estimatedCost = (double)6.0 * (double)nRow;
213316 ** Rounding constants for float->double conversion.
213327 double d = sqlite3_value_double(v);
213335 double d = sqlite3_value_double(v);
214083 sqlite3_str_appendf(pOut, " %g", (double)cell.aCoord[jj].f);
214803 double r;
215060 double A = sqlite3_value_double(argv[1]);
215061 double B = sqlite3_value_double(argv[2]);
215062 double C = sqlite3_value_double(argv[3]);
215063 double D = sqlite3_value_double(argv[4]);
215064 double E = sqlite3_value_double(argv[5]);
215065 double F = sqlite3_value_double(argv[6]);
215091 static double geopolyArea(GeoPoly *p){
215092 double rArea = 0.0;
215168 static double geopolySine(double r){
215176 double r2 = r*r;
215177 double r3 = r2*r;
215178 double r5 = r3*r2;
215194 double x = sqlite3_value_double(argv[0]);
215195 double y = sqlite3_value_double(argv[1]);
215196 double r = sqlite3_value_double(argv[2]);
215215 double rAngle = 2.0*GEOPOLY_PI*i/n;
215257 double r = GeoX(p,ii);
215386 double x0, double y0,
215387 double x1, double y1,
215388 double x2, double y2
215390 double y;
215422 double x0 = sqlite3_value_double(argv[1]);
215423 double y0 = sqlite3_value_double(argv[2]);
215486 double x; /* X coordinate at which event occurs */
215492 double C, B; /* y = C*x + B */
215493 double y; /* Current y value */
215623 double r = pRight->y - pLeft->y;
215674 double rX;
215717 double y = pSeg->C*rX + pSeg->B;
223414 static int rbuVfsCurrentTime(sqlite3_vfs *pVfs, double *pTimeOut){
225300 double r;
225301 assert( sizeof(double)==8 && sizeof(u64)==8 );
225456 double rVal = sqlite3_value_double(pVal);
225810 double rVal;
226215 double rVal = sqlite3_column_double(pDflt, iField);
226502 double dVal;
227443 double r = sqlite3_column_double(pStmt, iCol);
227527 double dVal;
227785 double rVal;
228380 double d;
230559 double rVal = sqlite3_column_int64(pTab->pDfltStmt, ii);
235038 double avgdl; /* Average number of tokens in each row */
235039 double *aIDF; /* IDF for each phrase */
235040 double *aFreq; /* Array used to calculate phrase freq. */
235081 nByte = sizeof(Fts5Bm25Data) + nPhrase*2*sizeof(double);
235088 p->aIDF = (double*)&p[1];
235096 if( rc==SQLITE_OK ) p->avgdl = (double)nToken / (double)nRow;
235116 double idf = log( (nRow - nHit + 0.5) / (nHit + 0.5) );
235143 const double k1 = 1.2; /* Constant "k1" from BM25 formula */
235144 const double b = 0.75; /* Constant "b" from BM25 formula */
235146 double score = 0.0; /* SQL function return value */
235150 double D = 0.0; /* Total number of tokens in row */
235151 double *aFreq = 0; /* Array of phrase freq. for current row */
235158 memset(aFreq, 0, sizeof(double) * pData->nPhrase);
235165 double w = (nVal > ic) ? sqlite3_value_double(apVal[ic]) : 1.0;
235174 D = (double)nTok;
249348 pIdxInfo->estimatedCost = (double)100;
257610 pIdxInfo->estimatedCost = (double)500;