Home
last modified time | relevance | path

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

/external/bsdiff/
Dbsdiff.cc146 off_t lastscan,lastpos,lastoffset; in bsdiff() local
200 lastscan=0;lastpos=0;lastoffset=0; in bsdiff()
244 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in bsdiff()
245 if(old_buf[lastpos+i]==new_buf[lastscan+i]) s++; in bsdiff()
253 for(i=1;(scan>=lastscan+i)&&(pos>=i);i++) { in bsdiff()
259 if(lastscan+lenf>scan-lenb) { in bsdiff()
260 overlap=(lastscan+lenf)-(scan-lenb); in bsdiff()
263 if(new_buf[lastscan+lenf-overlap+i]== in bsdiff()
275 db[dblen+i]=new_buf[lastscan+i]-old_buf[lastpos+i]; in bsdiff()
276 for(i=0;i<(scan-lenb)-(lastscan+lenf);i++) in bsdiff()
[all …]