]> git.kaiwu.me - klib.git/commitdiff
stop if >= not ==
authorHeng Li <lh3@me.com>
Fri, 2 Mar 2012 22:57:13 +0000 (17:57 -0500)
committerHeng Li <lh3@me.com>
Fri, 2 Mar 2012 22:57:13 +0000 (17:57 -0500)
ksw.c
ksw.h

diff --git a/ksw.c b/ksw.c
index d89908a851bcfa01efb72d317123062ff5268efd..75002030d20d6243eb8f686908e067b496b13cd1 100644 (file)
--- 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 cd80a15958a385966abd01282c16990ebee5d98f..66927b7108ae7520ae1c241185e4f12036ec1502 100644 (file)
--- 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
         *