From: Heng Li Date: Fri, 2 Mar 2012 22:57:13 +0000 (-0500) Subject: stop if >= not == X-Git-Tag: spawn-final~66 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=2247ce00d801ca60f1b76b1b1c1dc32e63145f73;p=klib.git stop if >= not == --- diff --git a/ksw.c b/ksw.c index d89908a..7500203 100644 --- a/ksw.c +++ b/ksw.c @@ -296,7 +296,7 @@ end_loop8: gmax = imax; te = i; for (j = 0; LIKELY(j < slen); ++j) _mm_store_si128(Hmax + j, _mm_load_si128(H1 + j)); - if (gmax == endsc) break; + if (gmax >= endsc) break; } S = H1; H1 = H0; H0 = S; } diff --git a/ksw.h b/ksw.h index cd80a15..66927b7 100644 --- a/ksw.h +++ b/ksw.h @@ -49,8 +49,7 @@ extern "C" { * KSW_XSUBO: track the 2nd best score and the ending position on the * target if the 2nd best is higher than (xtra&0xffff) * - * KSW_XSTOP: stop if the maximum score is above (xtra&0xffff). End - * users usually do not need to use this flag. + * KSW_XSTOP: stop if the maximum score is above (xtra&0xffff) * * KSW_XSTART: find the start positions *