Home
last modified time | relevance | path

Searched refs:lastscan (Results 1 – 3 of 3) sorted by relevance

/external/bsdiff/
Dbsdiff.c203 off_t lastscan,lastpos,lastoffset; in main() local
273 lastscan=0;lastpos=0;lastoffset=0; in main()
296 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in main()
297 if(old[lastpos+i]==new[lastscan+i]) s++; in main()
305 for(i=1;(scan>=lastscan+i)&&(pos>=i);i++) { in main()
311 if(lastscan+lenf>scan-lenb) { in main()
312 overlap=(lastscan+lenf)-(scan-lenb); in main()
315 if(new[lastscan+lenf-overlap+i]== in main()
327 db[dblen+i]=new[lastscan+i]-old[lastpos+i]; in main()
328 for(i=0;i<(scan-lenb)-(lastscan+lenf);i++) in main()
[all …]
/external/chromium_org/courgette/third_party/
Dbsdiff_create.cc291 int lastscan = 0, lastpos = 0, lastoffset = 0; in CreateBinaryPatch() local
336 for (int i = 1; (scan >= lastscan + i) && (pos >= i); i++) { in CreateBinaryPatch()
351 for (int i = 0; (lastscan + i < scan) && (lastpos + i < oldsize); ) { in CreateBinaryPatch()
352 if (old[lastpos + i] == newbuf[lastscan + i]) score++; in CreateBinaryPatch()
360 if (lastscan + lenf > scan - lenb) { in CreateBinaryPatch()
361 int overlap = (lastscan + lenf) - (scan - lenb); in CreateBinaryPatch()
365 if (newbuf[lastscan + lenf - overlap + i] == in CreateBinaryPatch()
376 uint8 diff_byte = newbuf[lastscan + i] - old[lastpos + i]; in CreateBinaryPatch()
388 int gap = (scan - lenb) - (lastscan + lenf); in CreateBinaryPatch()
390 if (!extra_bytes->Write(&newbuf[lastscan + lenf + i], 1)) in CreateBinaryPatch()
[all …]
/external/chromium_org/chrome/installer/mac/third_party/bsdiff/
Dgoobsdiff.c339 off_t lastscan,lastpos,lastoffset; in main() local
417 lastscan=0;lastpos=0;lastoffset=0; in main()
440 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in main()
441 if(old[lastpos+i]==new[lastscan+i]) s++; in main()
449 for(i=1;(scan>=lastscan+i)&&(pos>=i);i++) { in main()
455 if(lastscan+lenf>scan-lenb) { in main()
456 overlap=(lastscan+lenf)-(scan-lenb); in main()
459 if(new[lastscan+lenf-overlap+i]== in main()
471 db[dblen+i]=new[lastscan+i]-old[lastpos+i]; in main()
472 for(i=0;i<(scan-lenb)-(lastscan+lenf);i++) in main()
[all …]