Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/sqlite/src/ext/fts5/fts5_varint.c

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 ** 2015 May 30 2 ** 2015 May 30
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 if( v<=0x3fff ){ 326 if( v<=0x3fff ){
327 p[0] = ((v>>7)&0x7f)|0x80; 327 p[0] = ((v>>7)&0x7f)|0x80;
328 p[1] = v&0x7f; 328 p[1] = v&0x7f;
329 return 2; 329 return 2;
330 } 330 }
331 return fts5PutVarint64(p,v); 331 return fts5PutVarint64(p,v);
332 } 332 }
333 333
334 334
335 int sqlite3Fts5GetVarintLen(u32 iVal){ 335 int sqlite3Fts5GetVarintLen(u32 iVal){
336 #if 0
336 if( iVal<(1 << 7 ) ) return 1; 337 if( iVal<(1 << 7 ) ) return 1;
338 #endif
339 assert( iVal>=(1 << 7) );
337 if( iVal<(1 << 14) ) return 2; 340 if( iVal<(1 << 14) ) return 2;
338 if( iVal<(1 << 21) ) return 3; 341 if( iVal<(1 << 21) ) return 3;
339 if( iVal<(1 << 28) ) return 4; 342 if( iVal<(1 << 28) ) return 4;
340 return 5; 343 return 5;
341 } 344 }
342 345
OLDNEW
« no previous file with comments | « third_party/sqlite/src/ext/fts5/fts5_unicode2.c ('k') | third_party/sqlite/src/ext/fts5/fts5_vocab.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698