Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

stop if >= not ==

  • Loading branch information...
commit 2247ce00d801ca60f1b76b1b1c1dc32e63145f73 1 parent 38d13d3
@lh3 lh3 authored
Showing with 2 additions and 3 deletions.
  1. +1 −1  ksw.c
  2. +1 −2  ksw.h
View
2  ksw.c
@@ -296,7 +296,7 @@ kswr_t ksw_i16(kswq_t *q, int tlen, const uint8_t *target, int _gapo, int _gape,
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;
}
View
3  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
*
Please sign in to comment.
Something went wrong with that request. Please try again.