Home
last modified time | relevance | path

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

/external/bsdiff/
Dbsdiff.c205 off_t s,Sf,lenf,Sb,lenb; in main() local
295 s=0;Sf=0;lenf=0; in main()
299 if(s*2-i>Sf*2-lenf) { Sf=s; lenf=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()
316 old[lastpos+lenf-overlap+i]) s++; in main()
322 lenf+=lens-overlap; in main()
326 for(i=0;i<lenf;i++) in main()
328 for(i=0;i<(scan-lenb)-(lastscan+lenf);i++) in main()
[all …]
/external/chromium_org/chrome/installer/mac/third_party/bsdiff/
Dgoobsdiff.c341 off_t s,Sf,lenf,Sb,lenb; in main() local
439 s=0;Sf=0;lenf=0; in main()
443 if(s*2-i>Sf*2-lenf) { Sf=s; lenf=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()
460 old[lastpos+lenf-overlap+i]) s++; in main()
466 lenf+=lens-overlap; in main()
470 for(i=0;i<lenf;i++) in main()
472 for(i=0;i<(scan-lenb)-(lastscan+lenf);i++) in main()
[all …]
/external/chromium_org/courgette/third_party/
Dbsdiff_create.cc348 int lenf = 0; in CreateBinaryPatch() local
354 if (score*2 - i > Sf*2 - lenf) { Sf = score; lenf = i; } 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()
366 old[lastpos + lenf - overlap + i]) score++; in CreateBinaryPatch()
371 lenf += lens - overlap; in CreateBinaryPatch()
375 for (int i = 0; i < lenf; 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 …]