Mercurial > hg > easyhg-kdiff3
comparison kdiff3/src/gnudiff_analyze.cpp @ 66:efe33e938730
0.9.86
author | joachim99 |
---|---|
date | Thu, 16 Sep 2004 02:40:08 +0000 |
parents | 32d5cbf9db71 |
children | d7cafcda8c99 |
comparison
equal
deleted
inserted
replaced
65:8ea11c8efeb5 | 66:efe33e938730 |
---|---|
447 /* Multiply MANY by approximate square root of number of lines. | 447 /* Multiply MANY by approximate square root of number of lines. |
448 That is the threshold for provisionally discardable lines. */ | 448 That is the threshold for provisionally discardable lines. */ |
449 while ((tem = tem >> 2) > 0) | 449 while ((tem = tem >> 2) > 0) |
450 many *= 2; | 450 many *= 2; |
451 | 451 |
452 for (i = 0; i < (int)end; i++) | 452 for (i = 0; i < (lin)end; i++) |
453 { | 453 { |
454 lin nmatch; | 454 lin nmatch; |
455 if (equivs[i] == 0) | 455 if (equivs[i] == 0) |
456 continue; | 456 continue; |
457 nmatch = counts[equivs[i]]; | 457 nmatch = counts[equivs[i]]; |
458 if (nmatch == 0) | 458 if (nmatch == 0) |
459 discards[i] = 1; | 459 discards[i] = 1; |
460 else if (nmatch > (int)many) | 460 else if (nmatch > (lin)many) |
461 discards[i] = 2; | 461 discards[i] = 2; |
462 } | 462 } |
463 } | 463 } |
464 | 464 |
465 /* Don't really discard the provisional lines except when they occur | 465 /* Don't really discard the provisional lines except when they occur |