Lines Matching defs:double

622 # define double sqlite3_int64
1792 int (*xCurrentTime)(sqlite3_vfs*, double*);
2689 ** the legacy [double-quoted string literal] misfeature for DML statements
2698 ** the legacy [double-quoted string literal] misfeature for DDL statements,
4882 SQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double);
5454 SQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol);
5928 SQLITE_API double sqlite3_value_double(sqlite3_value*);
6275 SQLITE_API void sqlite3_result_double(sqlite3_context*, double);
7556 double estimatedCost; /* Estimated cost of using this index */
8442 ** by enclosing in double-quotes) so as not to confuse the parser.
8468 ** <li> Put all identifier names inside double-quotes. This is the official
9936 int (*xPutDouble)(void *pCtx, int addedRows, int column, double value);
10282 ** <dd>^The "double" variable pointed to by the V parameter will be set to the
10843 # undef double
10876 /* The double-precision datatype used by RTree depends on the
10882 typedef double sqlite3_rtree_dbl;
14199 # define double sqlite_int64
14377 # define LONGDOUBLE_TYPE long double
15894 double *pReal; /* Used when p4type is P4_REAL */
17099 double notUsed1; /* Spacer */
19965 SQLITE_PRIVATE int sqlite3IsNaN(double);
20419 SQLITE_PRIVATE int sqlite3RealSameAsInt(double,sqlite3_int64);
20420 SQLITE_PRIVATE i64 sqlite3RealToI64(double);
20422 SQLITE_PRIVATE int sqlite3AtoF(const char *z, double*, int, u8);
20433 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double);
22618 double r; /* Real value used when MEM_Real is set in flags */
22809 /* The DblquoteStr object holds the text of a double-quoted
22813 ** list is consulted for each double-quoted identifier to see if the
22884 DblquoteStr *pDblStr; /* List of double-quoted string literals */
23008 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem*, double);
23024 SQLITE_PRIVATE int sqlite3IntFloatCompare(i64,double);
23027 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem*);
23575 double s; /* Seconds */
23705 double ms = 0.0;
23717 double rScale = 1.0;
23857 static void setRawDateNumber(DateTime *p, double r){
23887 double r;
24173 double r;
24346 double rRounder;
24677 double s = x.s;
25164 double r;
26362 ** two fields form a double-linked list of chunks of related sizes.
30048 static const double arRound[] = {
30059 ** "*val" is a double such that 0.1 <= *val < 10.0
30101 static double getDoubleArg(PrintfArguments *p){
30183 double rounder; /* Used for rounding floating point values */
30465 realvalue = va_arg(ap,double);
30488 double rx = (double)realvalue;
30498 if( sqlite3IsNaN((double)realvalue) ){
33656 SQLITE_PRIVATE int sqlite3IsNaN(double x){
34009 ** Convert this string to a double and write it into *pResult.
34039 SQLITE_PRIVATE int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){
34050 double result;
34156 result = sign<0 ? -(double)0 : (double)0;
34179 result = (double)s;
35186 ** Convert a double into a LogEst
35189 SQLITE_PRIVATE LogEst sqlite3LogEstFromDouble(double x){
35884 static int kvvfsCurrentTime(sqlite3_vfs*, double*);
36734 static int kvvfsCurrentTime(sqlite3_vfs *pVfs, double *pTimeOut){
43081 /* Database filenames are double-zero terminated if they are not
43095 /* Generated temporary filenames are always double-zero terminated
43699 static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){
50185 /* Database filenames are double-zero terminated if they are not
51068 static int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){
51404 /* static int memdbCurrentTime(sqlite3_vfs*, double*); */
51989 static int memdbCurrentTime(sqlite3_vfs *pVfs, double *pTimeOut){
53646 ** The pLruNext and pLruPrev pointers form a double-linked circular list
65703 ** account for the double-read and the memory barrier. The use of mutexes
69120 ** statements only and for the purpose of double-checking that the btree code
80672 (p->flags & MEM_IntReal)!=0 ? (double)p->u.i : p->u.r);
80866 ** to be a double-zero byte at an even byte boundary in order to
81123 ** Convert a 64-bit IEEE double into a 64-bit signed integer.
81124 ** If the double is out of range of a 64-bit signed integer then
81127 static SQLITE_NOINLINE i64 doubleToInt64(double r){
81129 /* When floating-point is omitted, double and int64 are the same thing */
81142 if( r<=(double)minInt ){
81144 }else if( r>=(double)maxInt ){
81188 ** double. If pMem is already a double or an integer, return its
81189 ** value. If it is a string or blob, try to convert it to a double.
81192 static SQLITE_NOINLINE double memRealValue(Mem *pMem){
81193 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
81194 double val = (double)0;
81198 SQLITE_PRIVATE double sqlite3VdbeRealValue(Mem *pMem){
81206 return (double)pMem->u.i;
81210 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
81211 return (double)0;
81290 ** comparison of "r1==(double)i" you sometimes get an answer of false even
81291 ** though the r1 and (double)i values are bit-for-bit the same.
81293 SQLITE_PRIVATE int sqlite3RealSameAsInt(double r1, sqlite3_int64 i){
81294 double r2 = (double)i;
81304 SQLITE_PRIVATE i64 sqlite3RealToI64(double r){
81305 if( r<=(double)SMALLEST_INT64 ) return SMALLEST_INT64;
81306 if( r>=(double)LARGEST_INT64) return LARGEST_INT64;
81507 SQLITE_PRIVATE void sqlite3VdbeMemSetDouble(Mem *pMem, double val){
82185 pVal->u.r = -(double)SMALLEST_INT64;
82634 ** zId of length nId is a double-quoted identifier. Check to see if
82639 const char *zId /* The double-quoted identifier, already dequoted */
82707 ** operation (without SQLITE_TEST_REALLOC_STRESS) is to double the current
86307 pMem->u.r = (double)pMem->u.i;
86459 static const double r1 = 1.0;
86874 ** equal to, or greater than the second (double).
86876 SQLITE_PRIVATE int sqlite3IntFloatCompare(i64 i, double r){
86887 double s;
86893 s = (double)i;
88055 SQLITE_API double sqlite3_value_double(sqlite3_value *pVal){
88306 SQLITE_API void sqlite3_result_double(sqlite3_context *pCtx, double rVal){
89139 SQLITE_API double sqlite3_column_double(sqlite3_stmt *pStmt, int i){
89140 double val = sqlite3_value_double( columnMem(pStmt,i) );
89439 SQLITE_API int sqlite3_bind_double(sqlite3_stmt *pStmt, int i, double rValue){
89531 (pValue->flags & MEM_Real) ? pValue->u.r : (double)pValue->u.i
90029 double r = 1.0;
90035 *(double*)pOut = r*sqlite3LogEstToInt(x);
90586 static int alsoAnInt(Mem *pRec, double rValue, i64 *piValue){
90612 double rValue;
92108 double rA; /* Real value of left operand */
92109 double rB; /* Real value of right operand */
92153 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
92154 if( rA==(double)0 ) goto arithmetic_result_is_null;
92163 rB = (double)(iB % iA);
93533 pIn1->u.r = (double)pIn1->u.i;
93596 pIn1->u.r = (double)pIn1->u.i;
93801 pRec->u.r = (double)pRec->u.i;
102909 pIdxInfo->estimatedCost = (double)100;
103815 ** Return TRUE if the double-quoted string mis-feature should be supported.
104295 ** supplied) and the value of Z is enclosed in double-quotes, then
104308 /* If a double-quoted identifier does not match any known column name,
104312 ** to be compatible with MySQL 3.x, which used double-quotes for strings.
104323 "double-quoted string literal: \"%w\"", zCol);
104511 double r = -1.0;
106642 ** appear to be quoted. If the quotes were of the form "..." (double-quotes)
108081 ** For the purposes of this function, a double-quoted string (ex: "abc")
108228 ** For the purposes of this function, a double-quoted string (ex: "abc")
109488 double value;
112410 ** Generate VM code to replace any double-quoted strings (but not double-quoted
112964 /* Ensure the schema contains no double-quoted strings */
113569 /* Dequote the double-quoted token. Then requote it again, this time
114174 ** double-quotes use single quotes instead.
119551 ** it is quoted using double-quotes.
124904 double rVal = sqlite3_value_double(argv[0]);
125124 double r;
125142 r = (double)((sqlite_int64)(r+(r<0?-0.5:+0.5)));
125781 double r1, r2;
126260 double rSum; /* Floating point sum */
126341 sqlite3_result_double(context, p->rSum/(double)p->cnt);
126347 /* (double)0 In case of SQLITE_OMIT_FLOATING_POINT... */
126348 sqlite3_result_double(context, p ? p->rSum : (double)0);
126779 double (*x)(double) = (double(*)(double))sqlite3_user_data(context);
126794 static double xCeil(double x){ return ceil(x); }
126795 static double xFloor(double x){ return floor(x); }
126810 double x, b, ans;
126855 static double degToRad(double x){ return x*(M_PI/180.0); }
126856 static double radToDeg(double x){ return x*(180.0/M_PI); }
126869 double v0, ans;
126870 double (*x)(double);
126875 x = (double(*)(double))sqlite3_user_data(context);
126891 double v0, v1, ans;
126892 double (*x)(double,double);
126900 x = (double(*)(double,double))sqlite3_user_data(context);
126928 double x;
131963 int (*bind_double)(sqlite3_stmt*,int,double);
131989 double (*column_double)(sqlite3_stmt*,int iCol);
132049 void (*result_double)(sqlite3_context*,double);
132078 double (*value_double)(sqlite3_value*);
136934 pIdxInfo->estimatedCost = (double)1;
136948 pIdxInfo->estimatedCost = (double)2147483647;
136956 pIdxInfo->estimatedCost = (double)20;
154970 double rDummy;
160267 pIdxInfo->estimatedCost = SQLITE_BIG_DBL / (double)2;
162004 pLoop->cId, (double)sqlite3LogEstToInt(nSearch), pTab->zName,
162005 (double)sqlite3LogEstToInt(pTab->nRowLogEst)));
163350 double fVal = sqlite3_value_double(apArg[1]);
163484 double r = (double)p->nValue / (double)(p->nTotal-1);
163527 double r = (double)(p->nStep) / (double)(p->nTotal);
173208 case '"': /* single- and double-quoted strings */
173752 double y;
176748 ** Legacy behavior is 3 (double-quoted string literals are allowed anywhere)
177900 ** double fIn, // Input value
177909 double rIn = va_arg(ap, double);
179676 ** For a sequence of tokens contained in double-quotes (i.e. "one two three")
180477 ** Return a copy of input string zInput enclosed in double-quotes (") and
180478 ** with all double quote characters escaped. For example:
188233 ** Return TRUE if the word ends in a double consonant.
198499 ** any double-quotes or backslash characters contained within the
198822 double r;
199670 ** double-quotes around strings and returning the unquoted string "null"
201161 typedef double RtreeDValue; /* High accuracy coordinate */
201258 ** formatted as a RtreeDValue (double or int64). This macro assumes that local
201267 ((double)coord.f) : \
201268 ((double)coord.i) \
202222 sqlite3_rtree_dbl val; /* Coordinate value convert to a double */
202279 RtreeDValue xN; /* Coordinate value converted to a double */
203011 pIdxInfo->estimatedCost = (double)6.0 * (double)nRow;
204085 ** Rounding constants for float->double conversion.
204096 double d = sqlite3_value_double(v);
204104 double d = sqlite3_value_double(v);
204841 sqlite3_str_appendf(pOut, " %g", (double)cell.aCoord[jj].f);
205552 double r;
205807 double A = sqlite3_value_double(argv[1]);
205808 double B = sqlite3_value_double(argv[2]);
205809 double C = sqlite3_value_double(argv[3]);
205810 double D = sqlite3_value_double(argv[4]);
205811 double E = sqlite3_value_double(argv[5]);
205812 double F = sqlite3_value_double(argv[6]);
205837 static double geopolyArea(GeoPoly *p){
205838 double rArea = 0.0;
205912 static double geopolySine(double r){
205920 double r2 = r*r;
205921 double r3 = r2*r;
205922 double r5 = r3*r2;
205938 double x = sqlite3_value_double(argv[0]);
205939 double y = sqlite3_value_double(argv[1]);
205940 double r = sqlite3_value_double(argv[2]);
205958 double rAngle = 2.0*GEOPOLY_PI*i/n;
206000 double r = GeoX(p,ii);
206127 double x0, double y0,
206128 double x1, double y1,
206129 double x2, double y2
206131 double y;
206163 double x0 = sqlite3_value_double(argv[1]);
206164 double y0 = sqlite3_value_double(argv[2]);
206224 double x; /* X coordinate at which event occurs */
206230 double C, B; /* y = C*x + B */
206231 double y; /* Current y value */
206361 double r = pRight->y - pLeft->y;
206412 double rX;
206455 double y = pSeg->C*rX + pSeg->B;
214059 static int rbuVfsCurrentTime(sqlite3_vfs *pVfs, double *pTimeOut){
215911 double r;
215912 assert( sizeof(double)==8 && sizeof(u64)==8 );
216062 double rVal = sqlite3_value_double(pVal);
216406 double rVal;
216756 double dVal;
217702 double r = sqlite3_column_double(pStmt, iCol);
217786 double dVal;
217991 double rVal;
218575 double d;
224818 double avgdl; /* Average number of tokens in each row */
224819 double *aIDF; /* IDF for each phrase */
224820 double *aFreq; /* Array used to calculate phrase freq. */
224861 nByte = sizeof(Fts5Bm25Data) + nPhrase*2*sizeof(double);
224868 p->aIDF = (double*)&p[1];
224876 if( rc==SQLITE_OK ) p->avgdl = (double)nToken / (double)nRow;
224896 double idf = log( (nRow - nHit + 0.5) / (nHit + 0.5) );
224923 const double k1 = 1.2; /* Constant "k1" from BM25 formula */
224924 const double b = 0.75; /* Constant "b" from BM25 formula */
224926 double score = 0.0; /* SQL function return value */
224930 double D = 0.0; /* Total number of tokens in row */
224931 double *aFreq = 0; /* Array of phrase freq. for current row */
224938 memset(aFreq, 0, sizeof(double) * pData->nPhrase);
224945 double w = (nVal > ic) ? sqlite3_value_double(apVal[ic]) : 1.0;
224954 D = (double)nTok;
244536 pIdxInfo->estimatedCost = (double)500;