mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Optimization to the round() SQL function for large input values without a
fractional part. FossilOrigin-Name: e95138f5f4febde598f39e031d6e4f4d5ad0adbd8dcdd34fd0baaa78ab393417
This commit is contained in:
@@ -404,6 +404,8 @@ int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){
|
||||
int i;
|
||||
incr = 2;
|
||||
assert( SQLITE_UTF16LE==2 && SQLITE_UTF16BE==3 );
|
||||
testcase( enc==SQLITE_UTF16LE );
|
||||
testcase( enc==SQLITE_UTF16BE );
|
||||
for(i=3-enc; i<length && z[i]==0; i+=2){}
|
||||
if( i<length ) eType = -100;
|
||||
zEnd = &z[i^1];
|
||||
|
||||
Reference in New Issue
Block a user