From 2247ce00d801ca60f1b76b1b1c1dc32e63145f73 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Fri, 2 Mar 2012 17:57:13 -0500 Subject: [PATCH] stop if >= not == --- ksw.c | 2 +- ksw.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 * -- 2.47.3