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

Side by Side Diff: third_party/sqlite/sqlite-src-3100200/src/hash.c

Issue 1610543003: [sql] Import reference version of SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 ** 2001 September 22 2 ** 2001 September 22
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 pH->count++; 258 pH->count++;
259 if( pH->count>=10 && pH->count > 2*pH->htsize ){ 259 if( pH->count>=10 && pH->count > 2*pH->htsize ){
260 if( rehash(pH, pH->count*2) ){ 260 if( rehash(pH, pH->count*2) ){
261 assert( pH->htsize>0 ); 261 assert( pH->htsize>0 );
262 h = strHash(pKey) % pH->htsize; 262 h = strHash(pKey) % pH->htsize;
263 } 263 }
264 } 264 }
265 insertElement(pH, pH->ht ? &pH->ht[h] : 0, new_elem); 265 insertElement(pH, pH->ht ? &pH->ht[h] : 0, new_elem);
266 return 0; 266 return 0;
267 } 267 }
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3100200/src/hash.h ('k') | third_party/sqlite/sqlite-src-3100200/src/hwtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698