Lines Matching refs:scan
113 off_t scan,pos=0,len; in bsdiff() local
179 scan=0;len=0; in bsdiff()
181 while(scan<newsize) { in bsdiff()
190 for(scsc=scan+=len;scan<newsize;scan++) { in bsdiff()
195 len=search(I,old_buf,oldsize,new_buf+scan,newsize-scan, in bsdiff()
198 for(;scsc<scan+len;scsc++) in bsdiff()
206 if((scan+lastoffset<oldsize) && in bsdiff()
207 (old_buf[scan+lastoffset] == new_buf[scan])) in bsdiff()
222 if((len!=oldscore) || (scan==newsize)) { in bsdiff()
224 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in bsdiff()
231 if(scan<newsize) { in bsdiff()
233 for(i=1;(scan>=lastscan+i)&&(pos>=i);i++) { in bsdiff()
234 if(old_buf[pos-i]==new_buf[scan-i]) s++; in bsdiff()
239 if(lastscan+lenf>scan-lenb) { in bsdiff()
240 overlap=(lastscan+lenf)-(scan-lenb); in bsdiff()
245 if(new_buf[scan-lenb+i]== in bsdiff()
256 for(i=0;i<(scan-lenb)-(lastscan+lenf);i++) in bsdiff()
260 eblen+=(scan-lenb)-(lastscan+lenf); in bsdiff()
267 offtout((scan-lenb)-(lastscan+lenf),buf); in bsdiff()
277 lastscan=scan-lenb; in bsdiff()
279 lastoffset=pos-scan; in bsdiff()